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

txn: implement staging for PipelinedMemDB #1230

Merged
merged 4 commits into from
Mar 18, 2024

Conversation

ekexium
Copy link
Contributor

@ekexium ekexium commented Mar 15, 2024

Ref tikv/tikv#16291

Implement the staging interface for pipelined DML. Its correctness is guaranteed by that no stage can exist when a Flush() is called. Every stage lives inside a flush batch, which means the modifications all goes to the mutable memdb. Thus the staging of the whole PipeliendMemDB can be directly implemented by the memdb.

internal/unionstore/pipelined_memdb.go Outdated Show resolved Hide resolved
@ekexium ekexium merged commit 73c0712 into tikv:master Mar 18, 2024
10 checks passed
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.

3 participants