File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
source/reference/operator/aggregation Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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
160178Omitting any of the above parameters will cause $currentOp to use
161179that parameter's default value. Specify an empty document, as shown
You can’t perform that action at this time.
0 commit comments