db.killOp()

db.killOp(opid)
参数:
  • opid – Specify an operation ID.

Terminates the specified operation. Use db.currentOp() to find operations and their corresponding ids. See 当前操作报告 for full documentation of the output of db.currentOp().

注解

You cannot use db.killOp() to kill a foreground index build.

警告

Terminate running operations with extreme caution. Only use db.killOp() to terminate operations initiated by clients and do not terminate internal database operations.

MongoDB Manual (Index)

关于

生态系统

格式

资源