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

mocktikv: tiny update ScanLock and ResolveLock function #6275

Merged
merged 4 commits into from
Apr 16, 2018

Conversation

tiancaiamao
Copy link
Contributor

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

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.
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

gotcha

@shenli
Copy link
Member

shenli commented Apr 15, 2018

/run-all-tests

@disksing
Copy link
Contributor

LGTM.

@tiancaiamao tiancaiamao added status/LGT1 Indicates that a PR has LGTM 1. all-tests-passed labels Apr 16, 2018
@tiancaiamao
Copy link
Contributor Author

PTAL @MyonKeminta @coocood

@zhexuany zhexuany merged commit 5cbd868 into pingcap:master Apr 16, 2018
@tiancaiamao tiancaiamao deleted the mocktikv-scanlock branch April 24, 2018 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants