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

Prevent checkpoints for double puppeted events #342

Merged
merged 5 commits into from
Jan 10, 2025

Conversation

bradtgmurray
Copy link
Contributor

No description provided.

@@ -0,0 +1,2 @@
-- v19 (compatible with v9+): Add double puppeted state to messages
ALTER TABLE messages ADD COLUMN is_double_puppeted BOOLEAN NOT NULL;
Copy link
Member

Choose a reason for hiding this comment

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

Should leave it nullable or add a default, otherwise it's not actually compatible with v9+

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call, making it nullable so that we can debug old rows as "not having the information", I'm assuming the database layer will convert nulls to falses in the Go struct.

Copy link
Member

Choose a reason for hiding this comment

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

It won't convert anything, you need to scan into a pointer or an sql.NullBool (see how the other nullable columns are scanned)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

@bradtgmurray bradtgmurray changed the title WIP: Prevent checkpoints for double puppeted events Prevent checkpoints for double puppeted events Jan 9, 2025
@tulir tulir merged commit ac1ff66 into main Jan 10, 2025
10 checks passed
@tulir tulir deleted the prevent-delivered-checkpoints-for-double-puppeted-events branch January 10, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants