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

mongoc_cursor_set_hint causes secondary reads in sharded cluster

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: 1.4.0
    • Component/s: libmongoc
    • None

      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".

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

              Created:
              Updated:
              Resolved: