-
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
mocktikv: tiny update ScanLock and ResolveLock function #6275
Conversation
Make the semantics more clear for MVCCStore, it handles raw key (tableID + PK) it encode the key to MvccKey in the storage layer.
@@ -800,10 +800,6 @@ func (mvcc *MVCCLevelDB) ResolveLock(startKey, endKey []byte, startTS, commitTS | |||
mvcc.mu.Lock() | |||
defer mvcc.mu.Unlock() | |||
|
|||
// startKey and endKey are MvccKey type actually, take out the raw key here. |
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.
why do you remove both startKey and endKey? They will be used later.
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.
I don't remove it, just move the code here:
https://github.com/pingcap/tidb/pull/6275/files#diff-fe4f53947ee477517e64d4c2b1408e98R329
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.
gotcha
/run-all-tests |
LGTM. |
PTAL @MyonKeminta @coocood |
Make the semantics more clear for MVCCStore, it handles raw key (tableID + PK)
it encode the key to MvccKey in the storage layer.
@disksing @MyonKeminta