command.Encode doesn't set slaveOk flag

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:
              Kristofer Brandow (Inactive)
              Reporter:
              Sebastian Bauer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: