Skip to content

Conversation

cbi42
Copy link
Member

@cbi42 cbi42 commented Mar 11, 2024

Add SstFileReader::VerifyNumEntries() for this purpose. I added the same functionality to sst_dump in #12322. Since sst_file_reader.h is exposed to users while sst_dump.h is not, it seems more appropriate to add SST files related APIs here.

Test plan: ./sst_file_reader_test --gtest_filter="*VerifyNumEntries*"

@facebook-github-bot
Copy link
Contributor

@cbi42 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cbi42 cbi42 requested a review from jowlyzhang March 11, 2024 19:11
Copy link
Contributor

@jowlyzhang jowlyzhang left a comment

Choose a reason for hiding this comment

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

LGTM, comments are non blocking. Thank you for the improvement!

@cbi42 cbi42 force-pushed the sst-file-reader branch from efe0d58 to 36f662d Compare March 12, 2024 01:02
@facebook-github-bot
Copy link
Contributor

@cbi42 has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@cbi42 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cbi42
Copy link
Member Author

cbi42 commented Mar 12, 2024

LGTM, comments are non blocking. Thank you for the improvement!

Thanks for the quick review

@facebook-github-bot
Copy link
Contributor

@cbi42 merged this pull request in 36c1b0a.

kwadhwa18 pushed a commit to kwadhwa18/rocksdb that referenced this pull request Mar 18, 2024
…k#12418)

Summary:
Add `SstFileReader::VerifyNumEntries()` for this purpose. I added the same functionality to `sst_dump` in facebook#12322. Since sst_file_reader.h is exposed to users while sst_dump.h is not, it seems more appropriate to add SST files related APIs here.

Pull Request resolved: facebook#12418

Test Plan: `./sst_file_reader_test --gtest_filter="*VerifyNumEntries*"`

Reviewed By: jowlyzhang

Differential Revision: D54764271

Pulled By: cbi42

fbshipit-source-id: 22ebfe04bbb0b152762cee13d4210b147b36d3e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants