@@ -156,6 +156,8 @@ Output Reference
156
156
157
157
.. data:: locks
158
158
159
+ .. versionadded:: 2.2
160
+
159
161
The :data:`locks` document reports on the kinds of locks the
160
162
operation currently holds. The following kinds of locks are possible:
161
163
@@ -177,6 +179,18 @@ Output Reference
177
179
:data:`locks.^<database>` reports on the lock state for the
178
180
database that this operation targets.
179
181
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
+
180
194
.. data:: waitingForLock
181
195
182
196
Returns a boolean value. :data:`waitingForLock` is ``true`` if the
@@ -186,8 +200,27 @@ Output Reference
186
200
.. data:: msg
187
201
188
202
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.
191
224
192
225
.. data:: numYields
193
226
@@ -201,6 +234,8 @@ Output Reference
201
234
202
235
.. data:: lockStats
203
236
237
+ .. versionadded:: 2.2
238
+
204
239
The :data:`lockStats` document reflects the amount of time the
205
240
operation has spent both acquiring and holding
206
241
locks. :data:`lockStats` reports data on a per-lock type, with the
0 commit comments