From 5b2587b5cb5c7be1ea690e915437f1790977030c Mon Sep 17 00:00:00 2001 From: sdong Date: Wed, 23 Dec 2015 23:21:54 -0800 Subject: [PATCH] DBTest.HardLimit use special memtable Summary: DBTest.HardLimit fails in appveyor build. Use special mem table to make the test behavior depends less on platform Test Plan: Run the test with JEMALLOC both on and off. Reviewers: yhchiang, kradhakrishnan, rven, anthony, IslamAbdelRahman Reviewed By: IslamAbdelRahman Subscribers: leveldb, dhruba Differential Revision: https://reviews.facebook.net/D52317 --- db/db_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/db_test.cc b/db/db_test.cc index aaa7bc0ae..f7900b544 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -9124,6 +9124,8 @@ TEST_F(DBTest, HardLimit) { options.hard_pending_compaction_bytes_limit = 800 << 10; options.max_bytes_for_level_base = 10000000000u; options.max_background_compactions = 1; + options.memtable_factory.reset( + new SpecialSkipListFactory(KNumKeysByGenerateNewFile - 1)); env_->SetBackgroundThreads(1, Env::LOW); test::SleepingBackgroundTask sleeping_task_low;