fix db_sanity_test
This commit is contained in:
parent
726c8084cd
commit
05080dae3f
3
Makefile
3
Makefile
@ -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 \
|
||||
@ -98,6 +98,7 @@ TESTS = \
|
||||
|
||||
TOOLS = \
|
||||
sst_dump \
|
||||
db_sanity_test \
|
||||
db_stress \
|
||||
ldb \
|
||||
db_repl_stress \
|
||||
|
@ -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"; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user