summaryrefslogtreecommitdiff
path: root/db/cloner.cpp
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-05-08 17:23:29 -0700
committerAaron <aaron@10gen.com>2009-05-08 17:23:29 -0700
commita83e3bb41d67b64e43c166410f946df07ee36a32 (patch)
treeb6a97b446c404a8b37013c0e6b1f190c83e04500 /db/cloner.cpp
parentf8010f7ea1f646b8dca171c1c3ead0a9483de346 (diff)
downloadmongo-a83e3bb41d67b64e43c166410f946df07ee36a32.tar.gz
let user of cloner set up 'client' context, fixes repair
Diffstat (limited to 'db/cloner.cpp')
-rw-r--r--db/cloner.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/db/cloner.cpp b/db/cloner.cpp
index 4df68fa5d21..774f3037383 100644
--- a/db/cloner.cpp
+++ b/db/cloner.cpp
@@ -210,7 +210,6 @@ namespace mongo {
{
string err;
const char *toname = to_name.c_str();
- DBContext c( toname );
userCreateNS(toname, options, err, logForRepl);
/* chunks are big enough that we should create the _id index up front, that should
@@ -220,8 +219,8 @@ namespace mongo {
*/
if ( strstr(toname, "._chunks") )
ensureHaveIdIndex(toname);
- copy(from_name, to_name.c_str(), false, logForRepl, masterSameProcess, slaveOk);
}
+ copy(from_name, to_name.c_str(), false, logForRepl, masterSameProcess, slaveOk);
}
// now build the indexes