-
Notifications
You must be signed in to change notification settings - Fork 220
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
txn: add newly inserted flag for memdb key node #337
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Point get and batch point get use |
Signed-off-by: cfzjywxk <lsswxrxr@163.com>
e030651
to
9090b5f
Compare
can we merge this? cc @cfzjywxk |
Closing it to prevent distractions. Please reopen it when we want to advance. |
@disksing |
Solution for pingcap/tidb#27564.
Add a new flag for key in
memdb
, when the key node is allocated by aPUT
operation, add this flag to the key. This mark is used to identify the inserted keys generated from the transaction iteself, so that the delete operations on these unlocked keys could be skipped committing this transaction, see the comments for details in the issue.This change could be risky, need to think it over.