Dump routine to BlockBasedTableReader (valgrind)

Summary: Fixed valgrind issue

Test Plan: valgrind check done

Reviewers: rven, sdong

Reviewed By: sdong

Subscribers: sdong, dhruba

Differential Revision: https://reviews.facebook.net/D30699
main
Manish Patil 10 years ago
parent ddc81440d5
commit 2067058a60
  1. 6
      util/sst_dump_test.cc

@ -47,13 +47,13 @@ void createSST(const std::string& file_name,
Options opts; Options opts;
const ImmutableCFOptions imoptions(opts); const ImmutableCFOptions imoptions(opts);
rocksdb::InternalKeyComparator ikc(opts.comparator); rocksdb::InternalKeyComparator ikc(opts.comparator);
TableBuilder* tb = nullptr; unique_ptr<TableBuilder> tb;
env->NewWritableFile(file_name, &file, env_options); env->NewWritableFile(file_name, &file, env_options);
opts.table_factory = tf; opts.table_factory = tf;
tb = opts.table_factory->NewTableBuilder(imoptions, ikc, file.get(), tb.reset(opts.table_factory->NewTableBuilder(imoptions, ikc, file.get(),
CompressionType::kNoCompression, CompressionType::kNoCompression,
CompressionOptions()); CompressionOptions()));
// Populate slightly more than 1K keys // Populate slightly more than 1K keys
uint32_t num_keys = 1024; uint32_t num_keys = 1024;

Loading…
Cancel
Save