Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
Query 2018-11-05, Query 2018-11-19
Description
To avoid a "Halloween Problem" scenario, we will prevent writing to a collection with $out while simultaneously reading from that collection as the source aggregation collection. An exception will be made when the mode is "replaceCollection", because the use of a temporary namespace prevents an infinite loop of reads and writes.
Attachments
Issue Links
- related to
-
SERVER-42137 Allow aggregation $merge stage to write to a collection that the query also reads from
-
- Closed
-