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

Position of parameters within out {} object shouldn't matter

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.7.3
    • Affects Version/s: 2.1.0
    • Component/s: MapReduce
    • Labels:
    • ALL

      db.foo.mapReduce(... , ..., {out: {replace: "mr", db: "local"}}) 
      

      should work the same as

      db.foo.mapReduce(... , ..., {out: {db: "local", replace: "mr"}}) 
      

      but the latter throws an error instead.

        1. mr_parampositions.js
          2 kB
        2. pr192_rebase_ecfc44d.diff
          3 kB

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            osheroff Ben Osheroff
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: