summaryrefslogtreecommitdiff
path: root/client/parallel.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-05-26 01:44:09 -0400
committerEliot Horowitz <eliot@10gen.com>2010-05-26 01:44:09 -0400
commit4b284d9aab2bd79bc44457250f2e08bc07f3b68c (patch)
tree985d60b84747b9cc110f8bd97d2e2f512c998ade /client/parallel.cpp
parentafd0d0ea87b4b18621572512c5443f443cda5123 (diff)
downloadmongo-4b284d9aab2bd79bc44457250f2e08bc07f3b68c.tar.gz
fix conn leak
Diffstat (limited to 'client/parallel.cpp')
-rw-r--r--client/parallel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/parallel.cpp b/client/parallel.cpp
index 3aed0d8e56b..606f020ee34 100644
--- a/client/parallel.cpp
+++ b/client/parallel.cpp
@@ -320,6 +320,7 @@ namespace mongo {
ScopedDbConnection conn( res->_server );
res->_ok = conn->runCommand( res->_db , res->_cmd , res->_res );
res->_done = true;
+ conn.done();
}
shared_ptr<Future::CommandResult> Future::spawnCommand( const string& server , const string& db , const BSONObj& cmd ){