diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-04-26 00:05:10 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-04-26 00:05:10 -0400 |
commit | 01f08202534f5920ed71bee1a8f90b801d61bc64 (patch) | |
tree | eea3869bd3afe7251815c98bc938e1f2057c5ea7 /client/parallel.cpp | |
parent | f9b3ae89393bb00768549eaa330270a75547047e (diff) | |
download | mongo-01f08202534f5920ed71bee1a8f90b801d61bc64.tar.gz |
fix DBClientCursor ownership of ScopedDBConnection SERVER-1048
Diffstat (limited to 'client/parallel.cpp')
-rw-r--r-- | client/parallel.cpp | 2 |
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; |