Skip to content

Commit 258d67a

Browse files
committed
DOCSP-14875 clarify agg pipeline read pref runs on primary
1 parent b490850 commit 258d67a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/core/read-preference.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,14 @@ Additional Considerations
230230
-------------------------
231231

232232
For :doc:`aggregation pipeline </core/aggregation-pipeline>`
233-
operations, you must run on the primary if the pipeline includes either
234-
the :pipeline:`$out` stage or the :pipeline:`$merge` stage.
233+
operations that include the :pipeline:`$out` or :pipeline:`$merge`
234+
stages, the pipeline runs on the :term:`primary` member regardless of
235+
read preference setting.
235236

236237
For :dbcommand:`mapReduce` operations, only "inline"
237238
:dbcommand:`mapReduce` operations that do not write data support read
238-
preference. Otherwise, :dbcommand:`mapReduce` operations must run on
239-
the :term:`primary` members.
239+
preference. Otherwise, :dbcommand:`mapReduce` operations run on the
240+
:term:`primary` member.
240241

241242
.. [#edge-cases-2-primaries]
242243

0 commit comments

Comments
 (0)