Skip to content

Commit

Permalink
Show #blocks compressed and not compressed
Browse files Browse the repository at this point in the history
For: facebook#1474
Helps show when the 12.5% threshold for GoodCompressionRatio (originally from ldb) is hit.
  • Loading branch information
thatsafunnyname committed Dec 31, 2018
1 parent 5188a5e commit 97df471
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/sst_dump_tool_imp.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ class SstFileDumper {
RandomAccessFileReader* file, uint64_t file_size);

uint64_t CalculateCompressedTableSize(const TableBuilderOptions& tb_options,
size_t block_size);
size_t block_size,
uint64_t& num_data_blocks);

Status SetTableOptionsByMagicNumber(uint64_t table_magic_number);
Status SetOldTableOptions();
Expand Down

0 comments on commit 97df471

Please sign in to comment.