PrefixTest.PrefixAndWholeKeyTest should run against a different directory from prefix_test

Summary: PrefixTest.PrefixAndWholeKeyTest runs against the same directory as prefix_test, which sometimes fail parallel tests. Fix it.

Test Plan: Run it in parallel and see it doesn't fail anymore.

Reviewers: andrewkr

Reviewed By: andrewkr

Subscribers: leveldb, andrewkr, dhruba

Differential Revision: https://reviews.facebook.net/D56541
This commit is contained in:
sdong 2016-04-11 12:15:46 -07:00
parent 0e3cc2cf1f
commit 30d72ee43c

View File

@ -2429,7 +2429,7 @@ TEST_F(PrefixTest, PrefixAndWholeKeyTest) {
bbto.whole_key_filtering = true;
const std::string kDBPath = test::TmpDir() + "/prefix_test";
const std::string kDBPath = test::TmpDir() + "/table_prefix_test";
options.table_factory.reset(NewBlockBasedTableFactory(bbto));
DestroyDB(kDBPath, options);
rocksdb::DB* db;