- Mastering MongoDB 3.x
- Alex Giamas
- 62字
- 2021-08-20 10:10:55
currentOp/killOp
db.currentOp() will show us the current running operation in the database and will attempt to kill it. We need to run the use admin command before running killOp(). Needless to say, using killOp() against internal MongoDB operations is not recommended or advised as the database may end up in an undefined state:
> db.runCommand( { "killOp": 1, "op": <operationId> } )
推薦閱讀