fix: storage recruitment could get stuck in a spin loop

This commit is contained in:
Evan Tschannen 2018-03-15 11:00:44 -07:00
parent 65b532658f
commit 82fb6424ec
1 changed files with 1 additions and 0 deletions

View File

@ -1849,6 +1849,7 @@ ACTOR Future<Void> storageRecruiter( DDTeamCollection *self, Reference<AsyncVar<
}
when( Void _ = wait( self->restartRecruiting.onTrigger() ) ) {}
}
Void _ = wait( delay(FLOW_KNOBS->PREVENT_FAST_SPIN_DELAY) );
} catch( Error &e ) {
if(e.code() != error_code_timed_out) {
throw;