diff options
author | Aaron <aaron@10gen.com> | 2009-05-08 17:23:29 -0700 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-05-08 17:23:29 -0700 |
commit | a83e3bb41d67b64e43c166410f946df07ee36a32 (patch) | |
tree | b6a97b446c404a8b37013c0e6b1f190c83e04500 /db/cloner.cpp | |
parent | f8010f7ea1f646b8dca171c1c3ead0a9483de346 (diff) | |
download | mongo-a83e3bb41d67b64e43c166410f946df07ee36a32.tar.gz |
let user of cloner set up 'client' context, fixes repair
Diffstat (limited to 'db/cloner.cpp')
-rw-r--r-- | db/cloner.cpp | 3 |
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 |