Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-475

findAndModify & dropIndex queries don't use primary server with replicaset

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.0.34
    • Affects Version/s: 2.0.27
    • Component/s: None

      Hi,
      On a node project that use a replicaset, when I call findAndModify or dropIndex methods, there is often an error "not master" because requests are executed on a secondary.
      I think these kind of method should always use primary (et least for writing part).
      To bypass that, I need to add readPreference primary on all call to these functions, and it's not very cool
      Thanks.

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            jmaurel Julien Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: