[CSHARP-737] Improve behavior of GridFS when using a ReadPreference other than Primay Created: 30/Apr/13  Updated: 20/Mar/14  Resolved: 03/May/13

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

Type: Improvement Priority: Minor - P4
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   

Currently when connected to a replica set and using MongoGridFSFileInfo or MongoGridFSStream with a ReadPreference other than Primary the reads can be distributed over different secondaries, possibly leading to inconsistent results if the different secondaries have different replication lags.

Instead, MongoGridFSFileInfo and MongoGridFSStream should be bound to a specific secondary, so that all operations performed within the scope of the object go to the same secondary.



 Comments   
Comment by auto [ 03/May/13 ]

Author:

{u'date': u'2013-04-30T21:34:16Z', u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-737: Improve behavior of GridFS when using a ReadPreference other than Primary.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/1472375f9c7c2072aa7ed88bed2b5bd0447899f3

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