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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.9
    • 1.8.2
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: