[CSHARP-735] When connected directly to a secondary, do not coerce ReadPreference to Primary. Created: 26/Apr/13  Updated: 20/Mar/14  Resolved: 30/Apr/13

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.8.1
Fix Version/s: 1.8.2

Type: Bug Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In accordance with the ReadPreference spec the driver coerces the ReadPreference to Primary for any command that is not allowed to be sent to a secondary.

However, since this was implemented, the ReadPreference spec has been amended to state that this coercion should only happen when connected to a replica set. In particular, it should NOT be done when connected directly to a secondary.



 Comments   
Comment by auto [ 30/Apr/13 ]

Author:

{u'date': u'2013-04-30T14:12:50Z', u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-735: When connected directly to a secondary do not coerce ReadPreference to Primary for commands.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/65c0c81eb4b4a2f14d272f49d5c59831cb805e69

Generated at Wed Feb 07 21:37:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.