fix conn leak

This commit is contained in:
Eliot Horowitz
2010-05-26 01:44:09 -04:00
parent afd0d0ea87
commit 4b284d9aab

View File

@@ -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 ){