Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4264

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

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

      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:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            15 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved: