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

SERVER-845 break out of loop to set initial sync complete in a timely fashion

This commit is contained in:
Aaron 2010-03-30 14:46:53 -07:00
parent 49334953ea
commit 3a2d0e8741

View File

@ -1458,7 +1458,9 @@ namespace mongo {
{
dbtemprelease t;
if ( c->more() ) {
continue;
if ( getInitialSyncCompleted() ) { // if initial sync hasn't completed, break out of loop so we can set to completed or clone more dbs
continue;
}
} else {
setLastSavedLocalTs( nextLastSaved );
}