Skip to content

Commit d5131fc

Browse files
committed
DOCS-473 db.currentOp doc distinguish btwn v2.2 and prior fields
1 parent 9a22092 commit d5131fc

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

source/reference/current-op.txt

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ Output Reference
156156

157157
.. data:: locks
158158

159+
.. versionadded:: 2.2
160+
159161
The :data:`locks` document reports on the kinds of locks the
160162
operation currently holds. The following kinds of locks are possible:
161163

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

182+
:data:`locks` replaces ``lockType`` in earlier versions.
183+
184+
.. data:: lockType
185+
186+
*Removed in version 2.2.*
187+
188+
Identifies the type of lock the operation currently holds. The
189+
possible values are:
190+
191+
- ``read``
192+
- ``write``
193+
180194
.. data:: waitingForLock
181195

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

188202
The :data:`msg` provides a message that describes the status and
189-
progress of the operation. In the case of indexing operations, the
190-
field reports the completion percentage.
203+
progress of the operation. In the case of indexing or mapReduce
204+
operations, the field reports the completion percentage.
205+
206+
.. data:: progress
207+
208+
Reports on the progress of mapReduce or indexing operations. The
209+
:data:`progress` fields corresponds to the completion percentage in
210+
the :data:`msg` field. The :data:`progress` specifies the following
211+
information:
212+
213+
.. data:: done
214+
215+
Reports the number completed.
216+
217+
.. data:: total
218+
219+
Reports the total number.
220+
221+
.. data:: killed
222+
223+
Reports ``true`` if the operation is killed.
191224

192225
.. data:: numYields
193226

@@ -201,6 +234,8 @@ Output Reference
201234

202235
.. data:: lockStats
203236

237+
.. versionadded:: 2.2
238+
204239
The :data:`lockStats` document reflects the amount of time the
205240
operation has spent both acquiring and holding
206241
locks. :data:`lockStats` reports data on a per-lock type, with the

0 commit comments

Comments
 (0)