Skip to content

Commit

Permalink
DBTest.HardLimit use special memtable
Browse files Browse the repository at this point in the history
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
  • Loading branch information
siying committed Dec 25, 2015
1 parent 298ba27 commit 5b2587b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/db_test.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 5b2587b

Please sign in to comment.