Skip to content

Commit 32482fc

Browse files
author
Bob Grabar
committed
DOCS-162: minor edits
1 parent 84e1eb0 commit 32482fc

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

draft/reference/current-op.txt

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Current Operation Reporting
88

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

15-
.. code-block::
15+
.. code-block:: javascript
1616

1717
{
1818
"inprog": [
@@ -63,7 +63,7 @@ example output:
6363

6464
db.currentOp(true)
6565

66-
Furthermore, active operations (i.e. where :data:`active` are
66+
Furthermore, active operations (i.e. where :data:`active` is
6767
``true``) will return additional fields.
6868

6969
Output Reference
@@ -72,17 +72,17 @@ Output Reference
7272
.. data:: opid
7373

7474
Holds an identifier for the operation. You can pass this value to
75-
:method:`db.killOp()` in the :program:`mongo` shell to terminate an
75+
:method:`db.killOp()` in the :program:`mongo` shell to terminate the
7676
operation.
7777

7878
.. data:: active
7979

80-
A boolean value, that is ``true`` if the option is currently running,
81-
or ``false`` if queued and waiting for a lock to run.
80+
A boolean value, that is ``true`` if the option is currently running
81+
or ``false`` if the operation is queued and waiting for a lock to run.
8282

8383
.. data:: secs_running
8484

85-
The duration of this operation in seconds.
85+
The duration of the operation in seconds.
8686

8787
.. data:: op
8888

@@ -98,20 +98,20 @@ Output Reference
9898

9999
.. data:: ns
100100

101-
The :term:`namespace` that this operation targets. Namespaces are
101+
The :term:`namespace` the operation targets. Namespaces are
102102
formed using the name of the :term:`database` and the name of the
103103
:term:`collection`.
104104

105105
.. data:: query
106106

107-
A document containing the current operation's query. This document
107+
A document containing the current operation's query. The document
108108
is empty for operations that do not have queries: ``getmore``,
109109
``insert``, ``delete``, and ``command``.
110110

111111
.. data:: client
112112

113113
The IP address (or hostname) and the ephemeral port of the client
114-
connection where this operation originates. If your ``inprog``
114+
connection where the operation originates. If your ``inprog``
115115
array has operations from many different clients, use this string
116116
to relate operations to clients.
117117

@@ -122,16 +122,16 @@ Output Reference
122122

123123
.. data:: threadId
124124

125-
An identifier for the thread that services this operations and its
125+
An identifier for the thread that services the operation and its
126126
connection.
127127

128128
.. data:: connectionId
129129

130-
An identifier for the connection where this operation originated.
130+
An identifier for the connection where the operation originated.
131131

132132
.. data:: locks
133133

134-
The :data:`locks` document reports on the kinds of locks this
134+
The :data:`locks` document reports on the kinds of locks the
135135
operation currently holds. The following lock types are possible:
136136

137137
.. data:: locks.^
@@ -161,55 +161,55 @@ Output Reference
161161
.. data:: msg
162162

163163
The :data:`msg` provides a message that describes the status and
164-
progress of the operation. In the case of indexing operations, this
164+
progress of the operation. In the case of indexing operations, the
165165
field reports the completion percentage.
166166

167167
.. data:: numYields
168168

169-
:data:`numYields` is a counter that reports the number of time that
170-
this operation has yielded to allow other operations to complete.
169+
:data:`numYields` is a counter that reports the number of times the
170+
operation has yielded to allow other operations to complete.
171171

172-
Typically, operations will yield when they need access that
173-
is not yet in memory while MongoDB reads in the data. This allows
174-
other operations that have data already in memory, to complete quickly
175-
while MongoDB reads the data for the yielding operation into memory.
172+
Typically, operations yield when they need access to data that
173+
MongoDB has not yet fully read into memory. This allows
174+
other operations that have data in memory to complete quickly
175+
while MongoDB reads in data for the yielding operation.
176176

177177
.. data:: lockStats
178178

179-
The :data:`lockStats` document reflects the amount of time that
180-
this operation has spent both acquiring and holding
179+
The :data:`lockStats` document reflects the amount of time the
180+
operation has spent both acquiring and holding
181181
locks. :data:`lockStats` reports data on a per-lock type, with the
182182
following possible lock types:
183183

184-
- ``r`` represents the database specific read lock and
184+
- ``r`` represents the database specific read lock, and
185185
- ``w`` represents the database specific write lock.
186186

187187
.. data:: timeLockedMicros
188188

189189
The :data:`timeLockedMicros` document reports the amount of
190-
time this operation has spent holding a specific lock.
190+
time the operation has spent holding a specific lock.
191191

192192
.. data:: timeLockedMicros.r
193193

194-
Reports the amount of time that this operation has held the
195-
database specific read lock in microseconds.
194+
Reports the amount of time in microseconds the operation has held the
195+
database specific read lock.
196196

197197
.. data:: timeLockedMicros.w
198198

199-
Reports the amount of time that this operation has held the
200-
database specific write lock in microseconds.
199+
Reports the amount of time in microseconds the operation has held the
200+
database specific write lock.
201201

202202
.. data:: timeAquiringMicros
203203

204204
The :data:`timeLockedMicros` document reports the amount of time
205-
this operation has spent *waiting* to acquire a specific lock.
205+
the operation has spent *waiting* to acquire a specific lock.
206206

207207
.. data:: timeAcquiringMicros.r
208208

209-
Reports the mount of time the operation has waited for the
210-
database specific read lock in microseconds.
209+
Reports the mount of time in microseconds the operation has waited for the
210+
database specific read lock.
211211

212212
.. data:: timeAcquiringMicros.w
213213

214-
Reports the mount of time the operation has waited for the
215-
database specific write lock in microseconds.
214+
Reports the mount of time in microseconds the operation has waited for the
215+
database specific write lock.

0 commit comments

Comments
 (0)