-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This simulates a hard restart by renaming the storage directory. This method is not foolproof as open file descriptors can still be written to. This commit mitigates this somewhat by disallowing any WAL writes after a hard shutdown has occurred. However, there could still be open file descriptors somewhere else. Eventually, this will hopefully be implemented at the syscall layer if possible by rejecting any writes during a hard shutdown.
- Loading branch information
Showing
1 changed file
with
93 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters