0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

manual resync no longer required on failed initial clone

This commit is contained in:
Aaron 2009-03-31 11:49:19 -04:00
parent a1706a3d1b
commit 4e971ca609

View File

@ -28,7 +28,6 @@ doTest = function( signal ) {
s = startMongoProgram( "mongod", "--port", "27019", "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:27018" ); s = startMongoProgram( "mongod", "--port", "27019", "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:27018" );
sleep( 1000 ); sleep( 1000 );
ma.save( { i:-1 } ); ma.save( { i:-1 } );
assert.soon( function() { return 1 == s.getDB( "admin" ).runCommand( { "resync" : 1 } ).ok; } );
ma.save( { i:-2 } ); ma.save( { i:-2 } );
soonCountAtLeast( "a", "a", 10002 ); soonCountAtLeast( "a", "a", 10002 );