summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-04-23 23:49:37 -0400
committerEliot Horowitz <eliot@10gen.com>2012-04-23 23:49:37 -0400
commitd861e27e783406217a5d7f945a39169e5ae250a2 (patch)
treed9856493656d038875f05e61344872235649d3a4
parent6fb6a11f5879d0ca0bc36b07e4b25b03f74a468c (diff)
downloadmongo-d861e27e783406217a5d7f945a39169e5ae250a2.tar.gz
backport of SERVER-5357
-rw-r--r--db/commands/mr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/commands/mr.cpp b/db/commands/mr.cpp
index 9b10f99861e..30fa2a475bf 100644
--- a/db/commands/mr.cpp
+++ b/db/commands/mr.cpp
@@ -1207,7 +1207,7 @@ namespace mongo {
BSONObj res = config.reducer->finalReduce( values , config.finalizer.get());
if (state.isOnDisk())
- state.insertToInc(res);
+ state.insert( config.tempLong , res );
else
state.emit(res);
values.clear();