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

fix: do not call onMemChange in alloc #632

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

ekexium
Copy link
Contributor

@ekexium ekexium commented Dec 5, 2022

ref: pingcap/tidb#39611
We shall not call a.onMemChange() in alloc, since it will make the latest block empty if the callback finally decides to panic, which breaks a precondition for some operations (e.g. revertToCheckpoint)

…block empty, which breaks a precondition for some operations (e.g. revertToCheckpoint)

Signed-off-by: ekexium <eke@fastmail.com>
Copy link
Collaborator

@sticnarf sticnarf left a comment

Choose a reason for hiding this comment

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

LGTM

@ekexium
Copy link
Contributor Author

ekexium commented Dec 5, 2022

@disksing PTAL

@sticnarf sticnarf merged commit ad59ca8 into tikv:master Dec 5, 2022
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.

2 participants