Skip to content

Commit 2823d73

Browse files
committed
DOCS-13479 Add note for 5.1 out and merge behavior on RS
1 parent 54f206a commit 2823d73

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

source/reference/operator/aggregation/merge.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ Definition
4646
information, see :ref:`merge-behavior-same-collection`.
4747

4848
- Pipelines with the :pipeline:`$merge` stage can run on
49-
``replica set secondary nodes`` if all the nodes in cluster have
49+
replica set secondary nodes if all the nodes in cluster have
5050
:ref:`featureCompatibilityVersion <view-fcv>` set
5151
to ``4.4`` or higher and the :doc:`/core/read-preference`
5252
allows secondary reads.
5353

5454
- Read operations of the :pipeline:`$merge` statement are sent to
55-
``secondary`` nodes, while the write operations occur only on the
56-
``primary`` nodes.
55+
secondary nodes, while the write operations occur only on the
56+
primary node.
5757

5858
- Not all driver versions support targeting of :pipeline:`$merge`
5959
operations to replica set secondary nodes. Check your

source/reference/operator/aggregation/out.txt

+9
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,23 @@ $out Read Operations Run on Secondary Replica Set Members
155155
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
156156

157157
Starting in MongoDB 4.4, :pipeline:`$out` can run on
158+
<<<<<<< HEAD
158159
``replica set secondary nodes`` if all the nodes in
160+
=======
161+
replica set secondary nodes if all the nodes in
162+
>>>>>>> 257a0b2f8 (DOCS-13479 Add note for 5.1 out and merge behavior on RS)
159163
cluster have :ref:`featureCompatibilityVersion <view-fcv>` set
160164
to ``4.4`` or higher and the :doc:`/core/read-preference` is set to
161165
secondary.
162166

163167
Read operations of the :pipeline:`$out` statement occur on the
168+
<<<<<<< HEAD
164169
``secondary`` nodes, while the write operations occur only on the
165170
``primary`` nodes.
171+
=======
172+
secondary nodes, while the write operations occur only on the
173+
primary nodes.
174+
>>>>>>> 257a0b2f8 (DOCS-13479 Add note for 5.1 out and merge behavior on RS)
166175

167176
Not all driver versions support targeting of :pipeline:`$out`
168177
operations to replica set secondary nodes. Check your

source/release-notes/4.4.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ Starting in MongoDB 4.4:
394394
output to a collection in the same database database where the
395395
aggregation is run.
396396

397-
- :pipeline:`$out` can only run on ``replica set secondary nodes`` if
397+
- :pipeline:`$out` can only run on replica set secondary nodes if
398398
all the nodes in cluster have
399399
:ref:`featureCompatibilityVersion <view-fcv>` set to ``4.4`` or
400400
higher and the :doc:`/core/read-preference` allows secondary reads.
@@ -434,7 +434,7 @@ Starting in MongoDB 4.4:
434434
only output to a collection in the same database where the aggregation
435435
is run.
436436

437-
- :pipeline:`$merge` can only run on ``replica set secondary nodes`` if
437+
- :pipeline:`$merge` can only run on replica set secondary nodes if
438438
all the nodes in cluster have
439439
:ref:`featureCompatibilityVersion <view-fcv>` set to ``4.4`` or
440440
higher and the :doc:`/core/read-preference` allows secondary reads.

0 commit comments

Comments
 (0)