|
This issue no longer reproduces on the master branch:
MongoDB Enterprise > db.f.mapReduce(m, r, {out: 'agg'})
|
{
|
"result" : "agg",
|
"timeMillis" : 185,
|
"counts" : {
|
"input" : 4,
|
"emit" : 4,
|
"reduce" : 2,
|
"output" : 2
|
},
|
"ok" : 1
|
}
|
MongoDB Enterprise > db.agg.find()
|
{ "_id" : 1, "value" : 7 }
|
{ "_id" : 2, "value" : 12 }
|
MongoDB Enterprise > db.agg.update({_id: 1}, {$set: {a: 100}})
|
WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 })
|
MongoDB Enterprise > db.agg.find()
|
{ "_id" : 1, "value" : 7, "a" : 100 }
|
{ "_id" : 2, "value" : 12 }
|
MongoDB Enterprise > db.f.mapReduce(m, r, {out: {reduce: 'agg'}})
|
{
|
"result" : "agg",
|
"timeMillis" : 173,
|
"counts" : {
|
"input" : 4,
|
"emit" : 4,
|
"reduce" : 2,
|
"output" : 2
|
},
|
"ok" : 1
|
}
|
MongoDB Enterprise > db.agg.find()
|
{ "_id" : 1, "value" : 14 }
|
{ "_id" : 2, "value" : 24 }
|
I'm closing it as "Gone Away".
|