Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1959

Document db.currentOp() parameters

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • Affects Version/s: mongodb-2.4
    • Component/s: manual
    • Labels:
      None

      Currently, the currentOp() documentation states: "The db.currentOp() method can take no arguments or take the true argument, which returns a more verbose output, including idle connections and system operations."

      According to https://jira.mongodb.org/browse/SERVER-2434 and testing, currentOp() can take a query to filter the results

      e.g. db.currentOp({'secs_running': {"$gt": 100}})

            Assignee:
            Unassigned Unassigned
            Reporter:
            david.henderson@triggeredmessaging.com David Henderson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              9 years, 36 weeks, 6 days ago