From a8f47a40069b3c8bf10e5e5518dc0657612188d4 Mon Sep 17 00:00:00 2001 From: Tyler Harter Date: Wed, 14 Aug 2013 09:06:10 -0700 Subject: [PATCH] Add options to dump. Summary: added options to Dump() I missed in D12027. I also ran a script to look for other missing options and found a couple which I added. Should we also print anything for "PrepareForBulkLoad", "memtable_factory", and "statistics"? Or should we leave those alone since it's not easy to print useful info for those? Test Plan: run anything and look at LOG file to make sure these are printed now. Reviewers: dhruba Reviewed By: dhruba CC: leveldb Differential Revision: https://reviews.facebook.net/D12219 --- util/options.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util/options.cc b/util/options.cc index 56bc0ca73..268b04313 100644 --- a/util/options.cc +++ b/util/options.cc @@ -105,6 +105,7 @@ Options::Dump(Logger* log) const Log(log," Options.compaction_filter_factory: %s", compaction_filter_factory->Name()); Log(log," Options.error_if_exists: %d", error_if_exists); + Log(log," Options.create_if_missing: %d", create_if_missing); Log(log," Options.paranoid_checks: %d", paranoid_checks); Log(log," Options.env: %p", env); Log(log," Options.info_log: %p", info_log.get()); @@ -128,6 +129,9 @@ Options::Dump(Logger* log) const } Log(log," Options.filter_policy: %s", filter_policy == nullptr ? "nullptr" : filter_policy->Name()); + Log(log," Options.prefix_extractor: %s", + prefix_extractor == nullptr ? "nullptr" : prefix_extractor->Name()); + Log(log," Options.whole_key_filtering: %d", whole_key_filtering); Log(log," Options.num_levels: %d", num_levels); Log(log," Options.disableDataSync: %d", disableDataSync); Log(log," Options.use_fsync: %d", use_fsync); @@ -191,6 +195,8 @@ Options::Dump(Logger* log) const delete_obsolete_files_period_micros); Log(log," Options.max_background_compactions: %d", max_background_compactions); + Log(log," Options.soft_rate_limit: %.2f", + soft_rate_limit); Log(log," Options.hard_rate_limit: %.2f", hard_rate_limit); Log(log," Options.rate_limit_delay_max_milliseconds: %u",