From 11c71a365af28cbfccd49ef122047ef48e6c4b0e Mon Sep 17 00:00:00 2001 From: sdong Date: Fri, 30 Oct 2015 14:42:18 -0700 Subject: [PATCH] db_bench: --compaction_pri default should be rocksdb::Options().compaction_pri Summary: Currently db_bnech's --compaction_pri default is set to be rocksdb::Options().compaction_style. Change it to rocksdb::Options().compaction_pri. Although, for now both is 0. Test Plan: Build db_bench Reviewers: anthony, rven, IslamAbdelRahman, kradhakrishnan, igor Reviewed By: igor Subscribers: leveldb, dhruba Differential Revision: https://reviews.facebook.net/D49773 --- db/db_bench.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_bench.cc b/db/db_bench.cc index e3edc8396..bb2111536 100644 --- a/db/db_bench.cc +++ b/db/db_bench.cc @@ -315,7 +315,7 @@ DEFINE_int32(compaction_style, (int32_t) rocksdb::Options().compaction_style, "style of compaction: level-based vs universal"); static rocksdb::CompactionPri FLAGS_compaction_pri_e; -DEFINE_int32(compaction_pri, (int32_t)rocksdb::Options().compaction_style, +DEFINE_int32(compaction_pri, (int32_t)rocksdb::Options().compaction_pri, "priority of files to compaction: by size or by data age"); DEFINE_int32(universal_size_ratio, 0,