db.killOp(opid) in mongoDB

killOp(opid)

This method takes one argument. This method terminates an operation as specified by the operation ID.

Note:

To find operations and their corresponding IDs use db.currentOp().


Syntax:

db.killOp(opid) 


Example:

MongoDB

db.killOP(1)

Output:

{ "info" : "attempting to kill op", "ok" : 1 }


No comments:

Post a Comment