-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make sure to close and destroy the database before removing files from disk #1192
Conversation
, databaseFile wid <> "-wal" | ||
, databaseFile wid <> "-shm" | ||
] | ||
readMVar mvar >>= destroyDBLayer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the main change here. Make sure the db is closed before we attempt to remove the files from the disk ^.^ ...
6378cc4
to
c524a6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!. It would be good to have ultimate proof here, ie., have a test that really checks that, after clearing a database, the files are gone
bors r+ |
1192: make sure to close and destroy the database before removing files from disk r=KtorZ a=KtorZ # Issue Number <!-- Put here a reference to the issue this PR relates to and which requirements it tackles --> #1071 # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - [x] I have made sure to close and destroy the database before removing files from disk # Comments <!-- Additional comments or screenshots to attach if any --> <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Assign the PR to a corresponding milestone ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: KtorZ <[email protected]>
Build succeeded |
Issue Number
#1071
Overview
Comments