Skip to content

consistent lookup: handle insert ignore#4978

Merged
sougou merged 1 commit intovitessio:masterfrom
planetscale:ss-vindex-sort
Oct 7, 2019
Merged

consistent lookup: handle insert ignore#4978
sougou merged 1 commit intovitessio:masterfrom
planetscale:ss-vindex-sort

Conversation

@sougou
Copy link
Contributor

@sougou sougou commented Jul 3, 2019

Fixes #4974

Insert ignore wasn't working correctly because the verify was using
the normal transaction instead of the 'pre' transaction where the
rows were actually created.

This implementation changes the consistent lookup's Verify function
to also use the 'pre' transaction always.

There is another code path that gets used if the vindex is unowned.
That will also cause a 'pre' transaction to be created. Without this
change, the transaction would have been a normal one. This mildly
affects the commit order, but there should be no material difference.

Signed-off-by: Sugu Sougoumarane ssougou@gmail.com

@sougou sougou requested a review from mpawliszyn July 3, 2019 01:11
Fixes vitessio#4974

Insert ignore wasn't working correctly because the verify was using
the normal transaction instead of the 'pre' transaction where the
rows were actually created.

This implementation changes the consistent lookup's Verify function
to also use the 'pre' transaction always.

There is another code path that gets used if the vindex is unowned.
That will also cause a 'pre' transaction to be created. Without this
change, the transaction would have been a normal one. This mildly
affects the commit order, but there should be no material difference.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
@sougou
Copy link
Contributor Author

sougou commented Jul 27, 2019

@mpawliszyn Ping.

@sougou
Copy link
Contributor Author

sougou commented Aug 17, 2019

@mpawliszyn ping

Copy link
Collaborator

@deepthi deepthi left a comment

Choose a reason for hiding this comment

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

LGTM

@sougou sougou merged commit c876709 into vitessio:master Oct 7, 2019
@sougou sougou deleted the ss-vindex-sort branch October 12, 2019 02:33
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.

Insert ignore for vindexes without autocommit appear incorrect.

2 participants