Skip to content

DOCS-473 db.currentOp doc distinguish btwn v2.2 and prior fields #322

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 1 commit into from
Oct 16, 2012
Merged
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
39 changes: 37 additions & 2 deletions source/reference/current-op.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ Output Reference

.. data:: locks

.. versionadded:: 2.2

The :data:`locks` document reports on the kinds of locks the
operation currently holds. The following kinds of locks are possible:

Expand All @@ -177,6 +179,18 @@ Output Reference
:data:`locks.^<database>` reports on the lock state for the
database that this operation targets.

:data:`locks` replaces ``lockType`` in earlier versions.

.. data:: lockType

*Removed in version 2.2.*

Identifies the type of lock the operation currently holds. The
possible values are:

- ``read``
- ``write``

.. data:: waitingForLock

Returns a boolean value. :data:`waitingForLock` is ``true`` if the
Expand All @@ -186,8 +200,27 @@ Output Reference
.. data:: msg

The :data:`msg` provides a message that describes the status and
progress of the operation. In the case of indexing operations, the
field reports the completion percentage.
progress of the operation. In the case of indexing or mapReduce
operations, the field reports the completion percentage.

.. data:: progress

Reports on the progress of mapReduce or indexing operations. The
:data:`progress` fields corresponds to the completion percentage in
the :data:`msg` field. The :data:`progress` specifies the following
information:

.. data:: done

Reports the number completed.

.. data:: total

Reports the total number.

.. data:: killed

Reports ``true`` if the operation is killed.

.. data:: numYields

Expand All @@ -201,6 +234,8 @@ Output Reference

.. data:: lockStats

.. versionadded:: 2.2

The :data:`lockStats` document reflects the amount of time the
operation has spent both acquiring and holding
locks. :data:`lockStats` reports data on a per-lock type, with the
Expand Down