0
0
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:
Aaron 2009-05-08 17:23:29 -07:00
parent f8010f7ea1
commit a83e3bb41d
2 changed files with 1 additions and 5 deletions

View File

@ -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

View File

@ -1,6 +1,3 @@
print( " -- skipping repair test -- " );
quit();
t = db.jstests_repair;
t.drop();
t.save( { i:1 } );