summaryrefslogtreecommitdiff
path: root/db/mr.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-09-22 07:20:54 -0400
committerEliot Horowitz <eliot@10gen.com>2009-09-22 07:20:54 -0400
commita82cc2b03191344e3a8a2ef70300a0b8200bf90b (patch)
treeb67b63ede93da8599436193af6cf7414b125e56c /db/mr.cpp
parent76e80e83e75294f3ce4bfeb5aa80d4ffa1fff1e2 (diff)
downloadmongo-a82cc2b03191344e3a8a2ef70300a0b8200bf90b.tar.gz
fix older mac mr
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 );