From 05080dae3fe8854ca172493f3940283c9a932894 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Mon, 31 Mar 2014 17:06:53 -0700 Subject: [PATCH] fix db_sanity_test --- Makefile | 3 ++- tools/db_sanity_test.cc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5e7d87e58..772e35895 100644 --- a/Makefile +++ b/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 \ diff --git a/tools/db_sanity_test.cc b/tools/db_sanity_test.cc index f05d6f7ce..9642e9e5f 100644 --- a/tools/db_sanity_test.cc +++ b/tools/db_sanity_test.cc @@ -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"; }