Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6216

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

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Admin
    • None
    • Fully Compatible

    Description

      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) }

      )
      }

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            dstorrs David K. Storrs
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: