diff options
author | yellow <yellow@ofc-n1.10gen.com> | 2009-07-29 00:59:59 -0400 |
---|---|---|
committer | yellow <yellow@ofc-n1.10gen.com> | 2009-07-29 00:59:59 -0400 |
commit | d4008f027b553e901adcf0c42f43076db0fd1a4a (patch) | |
tree | 128e983eba1bdd1d77d7ce7fe76fed8685ac305a /db/cloner.cpp | |
parent | 280c1358eef1bb73397b70cad6364a0ed3988e9b (diff) | |
download | mongo-d4008f027b553e901adcf0c42f43076db0fd1a4a.tar.gz |
fix dbtemprelease
Diffstat (limited to 'db/cloner.cpp')
-rw-r--r-- | db/cloner.cpp | 5 |
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 ) ) |