Skip to content

minor wording edits to currentOp #148

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
Aug 27, 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
28 changes: 12 additions & 16 deletions draft/reference/current-op.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Current Operation Reporting

The :method:`db.currentOp()` helper in the :program:`mongo` shell
reports on the current operations running on the :program:`mongod`
instance. The command returns the ``inprog`` array which contains a
instance. The command returns the ``inprog`` array, that contains a
document for each in progress operation. Consider the following
example output:

Expand Down Expand Up @@ -57,7 +57,7 @@ example output:
.. optional::

You may specify the ``true`` argument to :method:`db.currentOp()`
to return full output. For example:
to return a more verbose output. For example:

.. code-block:: javascript

Expand All @@ -66,9 +66,6 @@ example output:
Furthermore, active operations (i.e. where :data:`active` are
``true``) will return additional fields.

Continue reading for full documentation of the entire output of
:method:`db.currentOp()`.

Output Reference
----------------

Expand All @@ -80,9 +77,8 @@ Output Reference

.. data:: active

A boolean value, that reports if the option is currently running,
with the ``true`` value, or queued and waiting for a lock to run,
with the ``false`` value.
A boolean value, that is ``true`` if the option is currently running,
or ``false`` if queued and waiting for a lock to run.

.. data:: secs_running

Expand Down Expand Up @@ -135,7 +131,7 @@ Output Reference

.. data:: locks

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

.. data:: locks.^
Expand All @@ -160,7 +156,7 @@ Output Reference

Returns a boolean value. :data:`waitingForLock` is ``true`` if the
operation is waiting for a lock and ``false`` if the operation has
the locks that it needs to complete.
the lock that it needs to complete.

.. data:: msg

Expand All @@ -173,14 +169,14 @@ Output Reference
:data:`numYields` is a counter that reports the number of time that
this operation has yielded to allow other operations to complete.

Typically, operations will yield when they need to access that that
is not yet in memory while MongoDB pages in that data. This allows
other operations that are already in memory, to complete quickly
while MongoDB reads the data for the first operation into memory.
Typically, operations will yield when they need access that
is not yet in memory while MongoDB reads in the data. This allows
other operations that have data already in memory, to complete quickly
while MongoDB reads the data for the yielding operation into memory.

.. data:: lockStats

The :data:`lockStats` document reflects the amount of time that a
The :data:`lockStats` document reflects the amount of time that
this operation has spent both acquiring and holding
locks. :data:`lockStats` reports data on a per-lock type, with the
following possible lock types:
Expand All @@ -191,7 +187,7 @@ Output Reference
.. data:: timeLockedMicros

The :data:`timeLockedMicros` document reports the amount of
time this operation has spent holding specific locks.
time this operation has spent holding a specific lock.

.. data:: timeLockedMicros.r

Expand Down