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

Allow option to db.current_op() to include idle connections

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 2.2
    • None

    Description

      db.current_op() currently only fetches the active operation. However the server can accept a "$all" flag which allows getting all the idle operations as well.

      Currently the only way to do this is to query the virtual collection $cmd.sys.inprog directly with {$all:1} and _is_command=True, so we might as well just add this as an option to db.current_op itself.

      Attachments

        Activity

          People

            mikeo@mongodb.com Michael O'Brien
            mikeo@mongodb.com Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: