Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Fix show stats #519

Merged
merged 2 commits into from
Jul 12, 2021
Merged

Fix show stats #519

merged 2 commits into from
Jul 12, 2021

Conversation

critical27
Copy link
Contributor

@critical27 critical27 commented Jul 8, 2021

Both BlockBasedTable and PlainTable will failed in some certain case.

  1. Both will failed when use HashSkipList as memtable.
  2. BlockBasedTable will fail when specify prefix_same_as_start, it is ok to remove it since we check it externally.

Will dig more later and add some test case.

@@ -234,7 +233,6 @@ RocksEngine::rangeWithPrefix(const std::string& start,
const std::string& prefix,
std::unique_ptr<KVIterator>* storageIter) {
rocksdb::ReadOptions options;
options.prefix_same_as_start = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Good job,thx
Perhaps just removing prefix_same_as_start is enough. In this way rocksdb uses the default value of prefix_same_as_start.

liuyu85cn
liuyu85cn previously approved these changes Jul 9, 2021
Copy link
Contributor

@bright-starry-sky bright-starry-sky left a comment

Choose a reason for hiding this comment

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

LGTM

@critical27
Copy link
Contributor Author

critical27 commented Jul 9, 2021

Hold on a sec, do some research. It is so complicated.

@critical27
Copy link
Contributor Author

Ready....

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants