summaryrefslogtreecommitdiff
path: root/db/mr.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2010-01-26 20:59:12 -0500
committerMathias Stearn <mathias@10gen.com>2010-01-26 21:00:00 -0500
commit922532f0a5b2d181d3a84c3c774c590a6b16dc33 (patch)
tree4b16e9c1445062fd860ada94855d2145e1e9c126 /db/mr.cpp
parent2fc5cd666f9906911fc66f7c18ac9c397989bc5b (diff)
downloadmongo-922532f0a5b2d181d3a84c3c774c590a6b16dc33.tar.gz
Fix bug in sharded MapReduce. SHARDING-68
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 ff88d9e75f2..ce9b6e6d5c0 100644
--- a/db/mr.cpp
+++ b/db/mr.cpp
@@ -547,7 +547,7 @@ namespace mongo {
DBDirectClient db;
while ( cursor.more() ){
- BSONObj t = cursor.next();
+ BSONObj t = cursor.next().getOwned();
if ( values.size() == 0 ){
values.push_back( t );