Skip to content

Fix unique index + MutTxId::insert not un-deleteting#2156

Merged
Centril merged 3 commits intomasterfrom
centril/fix-2134-update-no-undelete
Jan 22, 2025
Merged

Fix unique index + MutTxId::insert not un-deleteting#2156
Centril merged 3 commits intomasterfrom
centril/fix-2134-update-no-undelete

Conversation

@Centril
Copy link
Contributor

@Centril Centril commented Jan 21, 2025

Description of Changes

Fixes #2134.
The resolution was a fix to a silly bug where we did not un-delete in case of a unique index.
Also fixes an issue in find_same_row_via_unique_index where it didn't check row equality for the found pointer.

API and ABI breaking changes

None.

Expected complexity level and risk

1

Testing

A regression test is added.

Also ran the repro in the issue:

w1$ spacetime start
w2$ spacetime publish basics -s local -c -y
w2$ spacetime call basics add 1 1 -s local
w2$ spacetime call basics add 1 1 -s local
w1$ ^C
w1$ spacetime start
w2$ spacetime sql basics 'select * from boeuf'
 id | n 
----+---
 1  | 1 

@Centril Centril requested a review from gefjon January 21, 2025 19:54
@Centril Centril force-pushed the centril/fix-2134-update-no-undelete branch from ec114e7 to 8d3067d Compare January 21, 2025 19:55
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.

Looks good to me. Thanks for the new test. Once you get CI happy, this is good to merge as far as I'm concerned.

@Centril Centril requested a review from gefjon January 21, 2025 20:37
@Centril Centril enabled auto-merge January 21, 2025 20:41
@Centril Centril added this pull request to the merge queue Jan 22, 2025
Merged via the queue into master with commit a1573af Jan 22, 2025
8 of 9 checks passed
@Centril Centril deleted the centril/fix-2134-update-no-undelete branch January 22, 2025 10:40
bfops pushed a commit that referenced this pull request Feb 4, 2025
bfops pushed a commit that referenced this pull request Feb 4, 2025
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.

Update violates set semantics

2 participants