mongoc_cursor_set_hint causes secondary reads in sharded cluster

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.5.0
    • Affects Version/s: 1.4.0
    • Component/s: libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            A. Jesse Jiryu Davis
            Reporter:
            A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: