Explicitly cancel byte sample recovery on failure of a recovered storage server to prevent it from trying to read from the IKeyValueStore after shutdown. (#7212)
This commit is contained in:
parent
a9d62ea031
commit
c073f113a5
|
@ -9472,6 +9472,10 @@ ACTOR Future<Void> storageServer(IKeyValueStore* persistentData,
|
|||
|
||||
throw internal_error();
|
||||
} catch (Error& e) {
|
||||
if (self.byteSampleRecovery.isValid()) {
|
||||
self.byteSampleRecovery.cancel();
|
||||
}
|
||||
|
||||
if (recovered.canBeSet())
|
||||
recovered.send(Void());
|
||||
|
||||
|
|
Loading…
Reference in New Issue