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

MutTxId::update: consider deleted commited row when replacing tx row #2302

Merged
merged 2 commits into from
Feb 24, 2025

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Feb 24, 2025

Description of Changes

Fixes #2296.

In MutTxId::update: If there was a deleted committed row (row), this fact is recorded. Later, when updating a row_prime, resident in the tx state and sharing a key with row, if row_prime it's to be replaced with row's contents, we revert the insertion of the and instead un-delete row.

API and ABI breaking changes

None

Expected complexity level and risk

2?

Testing

Copy link
Contributor

@gefjon gefjon left a comment

Choose a reason for hiding this comment

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

Thanks so much for the quick work on this one!

Co-authored-by: Phoebe Goldman <[email protected]>
Signed-off-by: Mazdak Farrokhzad <[email protected]>
@Centril Centril enabled auto-merge February 24, 2025 16:43
@Centril Centril added this pull request to the merge queue Feb 24, 2025
Merged via the queue into master with commit 92c8e95 Feb 24, 2025
14 checks passed
@Centril Centril deleted the centril/fix-update-repro-2296 branch February 27, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update host call produces TXes containing no-op insert/delete pairs in sequences of delete->insert->update
3 participants