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

oceanbase::keybtree::ScanHandle::scan_forward #82

Closed
coding01000 opened this issue Jun 6, 2021 · 1 comment
Closed

oceanbase::keybtree::ScanHandle::scan_forward #82

coding01000 opened this issue Jun 6, 2021 · 1 comment

Comments

@coding01000
Copy link

When I was performing the TPCC benchmark, the scan_forward was called a lot of times,
I want to know what this function does?

@nroskill
Copy link
Contributor

nroskill commented Jun 7, 2021

There are both hashtable and btree in memtable.
When it's necessary to iter btree to find the data, scan_forward will build the path (from root to leaf node) for btree iterator.

code link
https://github.com/oceanbase/oceanbase/blob/master/src/storage/memtable/mvcc/ob_keybtree.cpp#L656

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

No branches or pull requests

2 participants