fix db_sanity_test

main
Igor Canadi 11 years ago
parent 726c8084cd
commit 05080dae3f
  1. 3
      Makefile
  2. 4
      tools/db_sanity_test.cc

@ -82,7 +82,7 @@ TESTS = \
redis_test \ redis_test \
reduce_levels_test \ reduce_levels_test \
plain_table_db_test \ plain_table_db_test \
prefix_test \ prefix_test \
simple_table_db_test \ simple_table_db_test \
skiplist_test \ skiplist_test \
stringappend_test \ stringappend_test \
@ -98,6 +98,7 @@ TESTS = \
TOOLS = \ TOOLS = \
sst_dump \ sst_dump \
db_sanity_test \
db_stress \ db_stress \
ldb \ ldb \
db_repl_stress \ db_repl_stress \

@ -134,10 +134,10 @@ class SanityTestPlainTableFactory : public SanityTest {
explicit SanityTestPlainTableFactory(const std::string& path) explicit SanityTestPlainTableFactory(const std::string& path)
: SanityTest(path) { : SanityTest(path) {
options_.table_factory.reset(NewPlainTableFactory()); options_.table_factory.reset(NewPlainTableFactory());
options_.prefix_extractor = NewFixedPrefixTransform(2); options_.prefix_extractor.reset(NewFixedPrefixTransform(2));
options_.allow_mmap_reads = true; options_.allow_mmap_reads = true;
} }
~SanityTestPlainTableFactory() { delete options_.prefix_extractor; } ~SanityTestPlainTableFactory() {}
virtual Options GetOptions() const { return options_; } virtual Options GetOptions() const { return options_; }
virtual std::string Name() const { return "PlainTable"; } virtual std::string Name() const { return "PlainTable"; }

Loading…
Cancel
Save