Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-403

command.Encode doesn't set slaveOk flag

      I create a new client with ConnString, set Connect: connstring.SingleConnect and ReadPreference: "secondaryPreferred". The direct connection is working but all queries get the error "(NotMasterNoSlaveOk) not master and slaveOk=false".

      command.Encode should set the slaveOk flag. What's missing to propagate the SingleConnect and secondaryPreferred preference to this point?

            Assignee:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Reporter:
            sebastianbauer Sebastian Bauer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: