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

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

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

      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.

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

              Created:
              Updated:
              Resolved: