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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.7.3
    • Component/s: MapReduce
    • Labels:
    • Operating System:
      ALL

      Description

      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.

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: