diff --git a/db/db_test.cc b/db/db_test.cc index 35f30c0f5..f3be5a94f 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -4714,8 +4714,8 @@ TEST(DBTest, PrefixScan) { options.create_if_missing = true; options.disable_seek_compaction = true; if (it == 0) { - options.memtable_factory = std::make_shared( - prefix_extractor); + options.memtable_factory.reset(NewHashSkipListRepFactory( + prefix_extractor)); } else { options.memtable_factory = std::make_shared( prefix_extractor);