From 59c901aebf2bc1fd83f99bb8b1978e868bbb650d Mon Sep 17 00:00:00 2001 From: Bob Grabar Date: Fri, 15 Feb 2013 12:34:31 -0500 Subject: [PATCH 1/2] DOCS-353 killOp and foreground index ops --- source/reference/limits.txt | 6 ++++++ source/reference/method/db.killOp.txt | 3 +++ 2 files changed, 9 insertions(+) diff --git a/source/reference/limits.txt b/source/reference/limits.txt index 28d06a83cb0..29bd996cd4f 100644 --- a/source/reference/limits.txt +++ b/source/reference/limits.txt @@ -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 ~~~~~~~~~~~~~~~~~~~ diff --git a/source/reference/method/db.killOp.txt b/source/reference/method/db.killOp.txt index 04857cbf6bc..51457db74d7 100644 --- a/source/reference/method/db.killOp.txt +++ b/source/reference/method/db.killOp.txt @@ -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 From 4a433136881f17fce4e458a29e1a881f0be93a98 Mon Sep 17 00:00:00 2001 From: Bob Grabar Date: Fri, 15 Feb 2013 15:52:22 -0500 Subject: [PATCH 2/2] DOCS-353 added note to current ops page --- source/reference/current-op.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/source/reference/current-op.txt b/source/reference/current-op.txt index 52006b460f0..e908cc2c186 100644 --- a/source/reference/current-op.txt +++ b/source/reference/current-op.txt @@ -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 @@ -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