Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-882

In GridFS, Delete, Move and CopyTo should always use ReadPreference.Primary as opposed to user specified ReadPreference

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.9
    • Affects Version/s: 1.8.2
    • Component/s: None
    • None

      GridFS, in order to ensure read consistency, pins a GridFSFileInfo to the member it was read from. This is inadvertantly used when deleting this file which can cause "Not Primary" errors when the file was read from a secondary.

            Assignee:
            sridhar Sridhar Nanjundeswaran
            Reporter:
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: