summaryrefslogtreecommitdiff
path: root/client/parallel.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-04-26 00:05:10 -0400
committerEliot Horowitz <eliot@10gen.com>2010-04-26 00:05:10 -0400
commit01f08202534f5920ed71bee1a8f90b801d61bc64 (patch)
treeeea3869bd3afe7251815c98bc938e1f2057c5ea7 /client/parallel.cpp
parentf9b3ae89393bb00768549eaa330270a75547047e (diff)
downloadmongo-01f08202534f5920ed71bee1a8f90b801d61bc64.tar.gz
fix DBClientCursor ownership of ScopedDBConnection SERVER-1048
Diffstat (limited to 'client/parallel.cpp')
-rw-r--r--client/parallel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/parallel.cpp b/client/parallel.cpp
index 59ec46f119a..1b82c010e38 100644
--- a/client/parallel.cpp
+++ b/client/parallel.cpp
@@ -69,6 +69,8 @@ namespace mongo {
if ( cursor->hasResultFlag( QueryResult::ResultFlag_ShardConfigStale ) )
throw StaleConfigException( _ns , "ClusteredCursor::query" );
+
+ cursor->attach( &conn );
conn.done();
return cursor;