Fix a test issue where closing an AsyncFileNonDurable could permanently prevent you from reopening the file if the machine was in a failed state during cleanup
This commit is contained in:
parent
944a03d575
commit
d82eac4062
|
@ -238,6 +238,7 @@ public:
|
|||
//TraceEvent("AsyncFileNonDurableOpenWaitOnDelete2").detail("Filename", filename);
|
||||
if (shutdown.isReady())
|
||||
throw io_error().asInjectedFault();
|
||||
wait(g_simulator.onProcess(currentProcess, currentTaskID));
|
||||
}
|
||||
|
||||
state Reference<AsyncFileNonDurable> nonDurableFile(
|
||||
|
@ -859,11 +860,9 @@ private:
|
|||
//TraceEvent("AsyncFileNonDurable_FinishDelete", self->id).detail("Filename", self->filename);
|
||||
|
||||
delete self;
|
||||
wait(g_simulator.onProcess(currentProcess, currentTaskID));
|
||||
return Void();
|
||||
} catch (Error& e) {
|
||||
state Error err = e;
|
||||
wait(g_simulator.onProcess(currentProcess, currentTaskID));
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue