mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
let user of cloner set up 'client' context, fixes repair
This commit is contained in:
parent
f8010f7ea1
commit
a83e3bb41d
@ -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
|
||||
|
@ -1,6 +1,3 @@
|
||||
print( " -- skipping repair test -- " );
|
||||
quit();
|
||||
|
||||
t = db.jstests_repair;
|
||||
t.drop();
|
||||
t.save( { i:1 } );
|
||||
|
Loading…
Reference in New Issue
Block a user