Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-869

Database.current_op and MongoClient.unlock should use ReadPreference.PRIMARY

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Database.current_op is a query against the '$cmd.sys.inprog' namespace. MongoClient.unlock is a query against the '$cmd.sys.unlock' namespace. Neither of these are enforcing "primary" read preference when connected to a replica set.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: