-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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: fix pessimitic exist check(#19004) #19019
Conversation
/run-all-tests |
store/tikv/txn.go
Outdated
@@ -360,10 +362,26 @@ func (txn *tikvTxn) LockKeys(ctx context.Context, lockCtx *kv.LockCtx, keysInput | |||
} | |||
}() | |||
txn.mu.Lock() | |||
logutil.Logger(ctx).Info("[for debug] key len", zap.Int("len", len(keysInput))) |
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.
should we remove this debug log?
/run-all-tests |
/run-unit-test |
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
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
LGTM |
/merge |
/run-all-tests |
What problem does this PR solve?
Cherry-pick #19004 to release 4.0 to close #18958
What is changed and how it works?
What's Changed:
txn.SetOption
interface and the exist map will be used inunionStore.Get
. It's different from the master branch behaviour.How it Works:
Related changes
Check List
Tests
Side effects
Release note