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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 2.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Michael O'Brien
            Reporter:
            Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: