add option to map/reduce output to output to the primary of a replica set or a different server

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.0.1
    • Component/s: MapReduce
    • None
    • Query Execution
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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 .

            Assignee:
            [DO NOT USE] Backlog - Query Execution
            Reporter:
            Daniel Pasette (Inactive)
            Votes:
            15 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved: