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

membuffer: support iterator for ART #1466

Merged
merged 7 commits into from
Sep 24, 2024
Merged

Conversation

you06
Copy link
Contributor

@you06 you06 commented Sep 23, 2024

ref pingcap/tidb#55287

This PR implements Iterator for ART.

@ti-chi-bot ti-chi-bot bot added dco-signoff: yes Indicates the PR's author has signed the dco. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 23, 2024
@@ -928,6 +955,7 @@ func testMemDBCheckpoint(t *testing.T, buffer MemBuffer) {

func TestBufferLimit(t *testing.T) {
testBufferLimit(t, newRbtDBWithContext())
testBufferLimit(t, newArtDBWithContext())
}

func testBufferLimit(t *testing.T, buffer MemBuffer) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is all the previous memdb test executed for both art and rbt implementations by now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Snapshot read is not supported yet, all the other tests are running for both art and rbt.

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Sep 24, 2024
Copy link
Contributor

@ekexium ekexium left a comment

Choose a reason for hiding this comment

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

The rest LGTM

inner: &baseIter{
allocator: &t.allocator,
},
currAddr: arena.BadAddr, // the default value of currAddr is not equal to any valid address
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we document how BadAddr is different from NullAddr?

@ti-chi-bot ti-chi-bot bot added the lgtm label Sep 24, 2024
Copy link

ti-chi-bot bot commented Sep 24, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cfzjywxk, ekexium

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Sep 24, 2024
Copy link

ti-chi-bot bot commented Sep 24, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-09-24 03:52:51.459401225 +0000 UTC m=+1538041.199825156: ☑️ agreed by cfzjywxk.
  • 2024-09-24 11:35:02.287246603 +0000 UTC m=+1565772.027670543: ☑️ agreed by ekexium.

@ti-chi-bot ti-chi-bot bot merged commit 7d0f0bc into tikv:master Sep 24, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants