summaryrefslogtreecommitdiff
path: root/db/cloner.cpp
diff options
context:
space:
mode:
authoryellow <yellow@ofc-n1.10gen.com>2009-07-29 00:59:59 -0400
committeryellow <yellow@ofc-n1.10gen.com>2009-07-29 00:59:59 -0400
commitd4008f027b553e901adcf0c42f43076db0fd1a4a (patch)
tree128e983eba1bdd1d77d7ce7fe76fed8685ac305a /db/cloner.cpp
parent280c1358eef1bb73397b70cad6364a0ed3988e9b (diff)
downloadmongo-d4008f027b553e901adcf0c42f43076db0fd1a4a.tar.gz
fix dbtemprelease
Diffstat (limited to 'db/cloner.cpp')
-rw-r--r--db/cloner.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/db/cloner.cpp b/db/cloner.cpp
index 936b15f5c78..33290da6e92 100644
--- a/db/cloner.cpp
+++ b/db/cloner.cpp
@@ -156,10 +156,11 @@ namespace mongo {
*/
string ns = fromdb + ".system.namespaces";
list<BSONObj> toClone;
- {
+ {
+ dbtemprelease r;
+
auto_ptr<DBClientCursor> c;
{
- dbtemprelease r;
if ( !masterSameProcess ) {
auto_ptr< DBClientConnection > c( new DBClientConnection() );
if ( !c->connect( masterHost, errmsg ) )