Merge branch 'master' of github.com:facebook/rocksdb
Fixed memory leak error
This commit is contained in:
commit
d5c0a6da6c
@ -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…
Reference in New Issue
Block a user