Skip to content

Commit 05080da

Browse files
committed
fix db_sanity_test
1 parent 726c808 commit 05080da

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ TESTS = \
8282
redis_test \
8383
reduce_levels_test \
8484
plain_table_db_test \
85-
prefix_test \
85+
prefix_test \
8686
simple_table_db_test \
8787
skiplist_test \
8888
stringappend_test \
@@ -98,6 +98,7 @@ TESTS = \
9898

9999
TOOLS = \
100100
sst_dump \
101+
db_sanity_test \
101102
db_stress \
102103
ldb \
103104
db_repl_stress \

tools/db_sanity_test.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ class SanityTestPlainTableFactory : public SanityTest {
134134
explicit SanityTestPlainTableFactory(const std::string& path)
135135
: SanityTest(path) {
136136
options_.table_factory.reset(NewPlainTableFactory());
137-
options_.prefix_extractor = NewFixedPrefixTransform(2);
137+
options_.prefix_extractor.reset(NewFixedPrefixTransform(2));
138138
options_.allow_mmap_reads = true;
139139
}
140-
~SanityTestPlainTableFactory() { delete options_.prefix_extractor; }
140+
~SanityTestPlainTableFactory() {}
141141
virtual Options GetOptions() const { return options_; }
142142
virtual std::string Name() const { return "PlainTable"; }
143143

0 commit comments

Comments
 (0)