-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.0.1
-
Component/s: MapReduce
-
None
-
Query Execution
-
(copied to CRM)
In the mongo shell, after connecting directly to a secondary, I can "use local", and then save documents to that database. I know they're not replicated, and that I need to copy the result somewhere else if I want to preserve it.
However, if I try to use the "out" option of "mapreduce" to write the output of a map-reduce job to "local", I get an error that I can't do that. It looks like the write is checked too high up in the call stack. It looks like that comes from here: https://github.com/mongodb/mongo/blob/master/db/commands/mr.cpp#L984-991 .
- is related to
-
SERVER-4265 Can't write to local database on a secondary if using --auth
- Closed