Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1872

mongoc_cursor_set_hint causes secondary reads in sharded cluster

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.5.0
    • 1.4.0
    • libmongoc
    • None

    Description

      Calling mongoc_cursor_set_hint (CDRIVER-1188) automatically sets the SlaveOkay bit. Normally this is correct since we intend to directly query a server, but via mongos setting SlaveOkay is equivalent to read preference "secondaryPreferred".

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: