add a killAllOps command WAS: Add 'Kill All Ops' feature in shell

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I used the following code to kill all ops and thereby terminate a long-running map reduce. It would be handy if this could be done as a built-in shell command. Perhaps: db.killAllOps()

      Code:

      function killAllOps() {
      ops = db.currentOp()
      ops.inprog.forEach(function(o)

      { db.killOp(o.opid) }

      )
      }

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            David K. Storrs
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: