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

slaveOk is ignored for group() and mapReduce(), these are allowed to run on slave always

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL

      this is easy to reproduce:

      foo:SECONDARY> db.test.find()
      error:

      { "$err" : "not master and slaveok=false", "code" : 13435 }

      foo:SECONDARY> db.test.group({initial:

      {n:0}

      , reduce: function(obj,out){out.n += obj.a;}})
      [

      { "n" : 3 }

      ]
      foo:SECONDARY>

            Assignee:
            antoine Antoine Girbal
            Reporter:
            antoine Antoine Girbal
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: