From 2ddf53b2cad65283538e65436580f9589060a221 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Tue, 10 Mar 2015 17:53:22 -0700 Subject: [PATCH] Get OptimizeFilterForHits work on Mac Summary: Got it working by some voodoo programming Test Plan: works! Reviewers: sdong Reviewed By: sdong Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D34611 --- db/db_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/db_test.cc b/db/db_test.cc index afe893a1e..c48769f51 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -11038,12 +11038,12 @@ TEST(DBTest, DeleteMovedFileAfterCompaction) { TEST(DBTest, OptimizeFiltersForHits) { Options options = CurrentOptions(); - options.write_buffer_size = 32 * 1024; - options.target_file_size_base = 32 * 1024; + options.write_buffer_size = 256 * 1024; + options.target_file_size_base = 256 * 1024; options.level0_file_num_compaction_trigger = 2; options.level0_slowdown_writes_trigger = 2; options.level0_stop_writes_trigger = 4; - options.max_bytes_for_level_base = 64 * 1024; + options.max_bytes_for_level_base = 256 * 1024; options.max_write_buffer_number = 2; options.max_background_compactions = 8; options.max_background_flushes = 8;