summaryrefslogtreecommitdiff
path: root/db/mr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/mr.cpp')
-rw-r--r--db/mr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/mr.cpp b/db/mr.cpp
index 77e86665aa1..ed67f364612 100644
--- a/db/mr.cpp
+++ b/db/mr.cpp
@@ -141,7 +141,7 @@ namespace mongo {
cursor = db.query( resultColl, Query().sort( BSON( "key" << 1 ) ) );
while ( cursor->more() ){
- BSONObj o = cursor->next();
+ BSONObj o = cursor->next().getOwned();
if ( o.woSortOrder( prev , sortKey ) == 0 ){
all.push_back( o );