>> db.test.insert(
{x : 0})
>> var m = function()
>> var r = function(k,v) { total = 0; for(i in v)
{ total+= v[i]; } return total; }
>> db.test.mapReduce(m, r,
)
{
"result" : "test.out",
"timeMillis" : 1,
"counts" :
,
"ok" : 1,
}
In the result, _id is undefined (it looks like null in the shell, but if you do a mongodump you can see it's type 6).
----------
This causes problems with replication (i.e., stops it completely).
- related to
-
SERVER-16713 mapReduce verify() failure with multiple null keys: all.size() == 1
- Closed