Skip to content

Commit 8a85829

Browse files
kennethdyerKenneth P. J. Dyer
andauthored
DOCS-16200 $currentOp - targetAllNodes (#4724)
* DOCS-16200 Documents targetAllNodes option * Fixes build issue * Fixes build issue * Expands explanation of conditions * Fixes build issue * Fixes per Jeff --------- Co-authored-by: Kenneth P. J. Dyer <[email protected]>
1 parent 45253ea commit 8a85829

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

source/reference/operator/aggregation/currentOp.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,24 @@ Syntax
156156
:binary:`~bin.mongod`.
157157

158158
Defaults to ``false``.
159+
* - :ref:`targetAllNodes <currentOp-stage-targetAllNodes>`
160+
161+
- .. _currentOp-stage-targetAllNodes:
162+
163+
Boolean. If set to ``true``, ``$currentOp`` outputs a document
164+
for each data-bearing node for all shards. If set to ``false``,
165+
``$curentOp`` outputs a document for each shard.
166+
167+
For example, in a sharded cluster with three shards where each shard
168+
is a replica set with three nodes:
169+
170+
- ``targetAllNodes=false`` outputs three documents
171+
172+
- ``targetAllNodes=true`` outputs nine documents
173+
174+
Defaults to ``false``.
175+
176+
.. versionadded:: 7.1
159177

160178
Omitting any of the above parameters will cause $currentOp to use
161179
that parameter's default value. Specify an empty document, as shown

0 commit comments

Comments
 (0)