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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 3.0
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: