Skip to content

Commit

Permalink
fix db_sanity_test
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcanadi committed Apr 1, 2014
1 parent 726c808 commit 05080da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ TESTS = \
redis_test \
reduce_levels_test \
plain_table_db_test \
prefix_test \
prefix_test \
simple_table_db_test \
skiplist_test \
stringappend_test \
Expand All @@ -98,6 +98,7 @@ TESTS = \

TOOLS = \
sst_dump \
db_sanity_test \
db_stress \
ldb \
db_repl_stress \
Expand Down
4 changes: 2 additions & 2 deletions tools/db_sanity_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ class SanityTestPlainTableFactory : public SanityTest {
explicit SanityTestPlainTableFactory(const std::string& path)
: SanityTest(path) {
options_.table_factory.reset(NewPlainTableFactory());
options_.prefix_extractor = NewFixedPrefixTransform(2);
options_.prefix_extractor.reset(NewFixedPrefixTransform(2));
options_.allow_mmap_reads = true;
}
~SanityTestPlainTableFactory() { delete options_.prefix_extractor; }
~SanityTestPlainTableFactory() {}
virtual Options GetOptions() const { return options_; }
virtual std::string Name() const { return "PlainTable"; }

Expand Down

0 comments on commit 05080da

Please sign in to comment.