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

P-DML: for AlreadyExist error, attach the value from flushingMemDB #1218

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

ekexium
Copy link
Contributor

@ekexium ekexium commented Mar 12, 2024

This is to provide the value for TiDB to generate the corresponding duplicate entry error.
For vanilla memdb, the value was obtained by memdb.SelectValue().
For pipelined memdb, the flushingMemDB will be cleared once an error returned. So we choose to retain the value in the error struct.

…hingMemDB to it

Signed-off-by: ekexium <eke@fastmail.com>
@ekexium ekexium force-pushed the pipelined-dml-dup-key-message branch from b515193 to eeb30c3 Compare March 12, 2024 10:57
Signed-off-by: ekexium <eke@fastmail.com>
@ekexium ekexium requested a review from zyguan March 12, 2024 12:32
@ekexium ekexium merged commit d59fea5 into tikv:master Mar 13, 2024
10 checks passed
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.

3 participants