diff --git a/fdbserver/storageserver.actor.cpp b/fdbserver/storageserver.actor.cpp index ded2ebda3c..24b8fd9725 100644 --- a/fdbserver/storageserver.actor.cpp +++ b/fdbserver/storageserver.actor.cpp @@ -3796,9 +3796,9 @@ ACTOR Future storageServer( IKeyValueStore* persistentData, StorageServerI choose { //after a rollback there might be uncommitted changes. //for memory storage engine type, wait until recovery is done before commit - wait(self.storage.commit()) {} + when( wait(self.storage.commit())) {} - wait(memoryStoreRecover (persistentData, connFile, self.thisServerID)) { + when( wait(memoryStoreRecover (persistentData, connFile, self.thisServerID))) { TraceEvent("DisposeStorageServer", self.thisServerID); throw worker_removed(); }