-
Notifications
You must be signed in to change notification settings - Fork 648
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
Fix #436 object_database created outside of witness data directory #689
Conversation
@pmconrad thanks for you reviews in #687:
I have removed unrelated changes of IMO database::wipe() is to delete the index&data files, so it's properly database::close() it before deleting theses files. No guarantee database::wipe() only be called from application::startup() in the future. |
Looks fine for me. |
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.
Thanks!
The change has the desired effect.
The definition of "open" is not quite what I'd hoped for :-), but it's consistent and it's a step in the right direction.
* Whether database is successfully opened or not. | ||
* | ||
* The database is considered open when there's no exception | ||
* or assertion fail during database::open() method. |
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.
...and database::close() has not been called, or failed during execution.
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.
Thank you~ I have supplemented the comments.
PR for #436.