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

MongoClient.is_locked uses the deprecated Database.current_op method

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.9
    • Affects Version/s: None
    • Component/s: None
    • None

      $ python3.7 -Wall
      Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 03:13:28)
      [Clang 6.0 (clang-600.0.57)] on darwin
      Type "help", "copyright", "credits" or "license" for more information.
      >>> client.is_locked
      /Users/shane/git/mongo-python-driver/pymongo/mongo_client.py:2099: DeprecationWarning: current_op() is deprecated. See the documentation formore information
        ops = self._database_default_options('admin').current_op()
      False
      

      Also the current_op deprecation warning is missing a space in "formore".

            Assignee:
            prashant.mital Prashant Mital (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: