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

Dump compression dictionary meta-block #1837

Closed
wants to merge 2 commits into from

Conversation

ajkr
Copy link
Contributor

@ajkr ajkr commented Feb 3, 2017

make sst_dump print size/contents of the dictionary meta-block for easier debugging

Test Plan: ran sst_dump --command=raw on a file compressed with dictionary, verified it looked as expected


// Output compression dictionary
auto compression_dict = rep_->compression_dict_block->data;
if (!compression_dict.empty()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we check that compression_dict != nullptr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

need to check compression_dict_block, yes, thanks!

@facebook-github-bot
Copy link
Contributor

@ajkr updated the pull request - view changes

Copy link
Contributor

@IslamAbdelRahman IslamAbdelRahman left a comment

Choose a reason for hiding this comment

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

LGTM

@facebook-github-bot
Copy link
Contributor

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

VitaliyLi pushed a commit to VitaliyLi/rocksdb that referenced this pull request Feb 3, 2017
Summary:
make sst_dump print size/contents of the dictionary meta-block for easier debugging
Closes facebook#1837

Differential Revision: D4506399

Pulled By: ajkr

fbshipit-source-id: b9bf668
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