Skip to content
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

main: Defer database close. #353

Merged
merged 1 commit into from
Sep 12, 2023
Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Sep 12, 2023

This requires #352.

This defers the database close once opened to ensure it is always properly closed on all error paths.

@davecgh davecgh force-pushed the main_defers_db_close branch 2 times, most recently from 9b46362 to 290ea16 Compare September 12, 2023 08:17
dcrpool.go Outdated Show resolved Hide resolved
This defers the database close once opened to ensure it is always
properly closed on all error paths.

It also adds a defer for the overall shutdown complete message and
updates the hub shutdown complete message to indicate it's referring to
the hub.
@jholdstock jholdstock merged commit 47dc6af into decred:master Sep 12, 2023
2 checks passed
@davecgh davecgh deleted the main_defers_db_close branch September 12, 2023 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants