Skip to content

DOCS-353 killOp and foreground index ops #658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 19, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions source/reference/current-op.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,14 @@ Operations

You can use the :method:`db.killOp()` in conjunction with the
:data:`~currentOp.opid` field to terminate a currently running
operation. Consider the following JavaScript operations for the
:program:`mongo` shell that you can use to filter the output of
identify specific types of operations:
operation.

.. note:: You cannot use :method:`db.killOp()` to kill a foreground
index build.

The following JavaScript operations for the
:program:`mongo` shell filter the output of
specific types of operations:

.. include:: /includes/example-filter-current-op.rst

Expand All @@ -97,6 +102,9 @@ depending on the kind of operation and its state.
:method:`db.killOp()` in the :program:`mongo` shell to terminate the
operation.

.. note:: You cannot use :method:`db.killOp()` to kill a foreground
index build.

.. data:: currentOp.active

A boolean value, that is ``true`` if the operation has started
Expand Down
6 changes: 6 additions & 0 deletions source/reference/limits.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ Operations

.. see:: :operator:`$or` and :doc:`/core/geospatial-indexes`.

.. _cannot-kill-foreground:
.. limit:: Cannot Kill Foreground Index Build

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

Naming Restrictions
~~~~~~~~~~~~~~~~~~~

Expand Down
3 changes: 3 additions & 0 deletions source/reference/method/db.killOp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ db.killOp()
:doc:`/reference/current-op` for full documentation of the output
of :method:`db.currentOp()`.

.. note:: You cannot use :method:`db.killOp()` to kill a foreground
index build.

.. include:: /includes/warning-terminating-operations.rst