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:
parent
49334953ea
commit
3a2d0e8741
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user