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

Fix out-of-sync sequence for psql and wrap destructor in optional DB transaction #4894

Merged
merged 3 commits into from
Oct 31, 2021

Conversation

cdecker
Copy link
Member

@cdecker cdecker commented Oct 29, 2021

Fixes #4887
Fixes #4879
Fixes #4891

Sometimes we need some DB-specific magic, and marking migrations with
`/*PSQL*/` or `/*SQLITE*/` will now give us that.
Changelog-Fixed: peer: Fixed a crash when a connection is lost outside of a DB transaction
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a good way to hook into the close event so we can wrap the cascade in a transaction as well? The alternative is to have a tiny wrapper around the destructor that just starts the DB transaction and commits it.

Concept ack, sorry for the missing in the issue #4891 answer.

ack 7f47315

Copy link
Contributor

@rustyrussell rustyrussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack 7f47315

@cdecker cdecker merged commit 0351940 into ElementsProject:master Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants