Merge branch 'master' of github.com:facebook/rocksdb

Fixed memory leak error
main
Boyang Zhang 10 years ago
commit d5c0a6da6c
  1. 3
      util/sst_dump_tool.cc

@ -168,8 +168,9 @@ int SstFileReader::ShowAllCompressionSizes(size_t block_size) {
for (CompressionType i = CompressionType::kNoCompression;
i != CompressionType::kLZ4HCCompression; i = CompressionType(i + 1)) {
CompressionOptions compress_opt;
TableBuilderOptions tb_opts(imoptions, ikc, &block_based_table_factories, i,
CompressionOptions(), false);
compress_opt, false);
uint64_t file_size = CalculateCompressedTableSize(tb_opts, block_size);
fprintf(stdout, "Compression: %s", compress_type.find(i)->second);
fprintf(stdout, " Size: %" PRIu64 "\n", file_size);

Loading…
Cancel
Save