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 crash while deleting tuple w/ va attributes #127

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

dAdAbird
Copy link
Member

During the delete, we deform a tuple to create a new one with only Replica Identity attributes. Deforming - extracting attributes from the tuple, see pg_tde_deform_tuple() in ExtractReplicaIdentity() - needs to know the size of the variable length (va) attribute, which is in the va_header. As the va_header is the first N bytes of the actual data, the tuple has to be decrypted to read the attribute size.

Closes #126

During the delete, we deform a tuple to create a new one with only
Replica Identity attributes. Deforming - extracting attributes from
the tuple, see `pg_tde_deform_tuple()` in `ExtractReplicaIdentity()` -
needs to know the size of the variable length (va) attribute, which is
in the va_header. As the va_header is the first N bytes of the actual
data, the tuple has to be decrypted to read the attribute size.

Closes percona#126
Copy link
Collaborator

@codeforall codeforall left a comment

Choose a reason for hiding this comment

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

Looks good

@dAdAbird dAdAbird merged commit 57cf804 into percona:main Feb 29, 2024
8 checks passed
@dAdAbird dAdAbird deleted the frenchy_tuples branch February 29, 2024 07:48
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.

Crash while deleting tuple with varlen attribute
3 participants