From 45b75690025a9b5840d8db137190891405cc8333 Mon Sep 17 00:00:00 2001 From: Yang Zhang Date: Tue, 29 Oct 2024 11:21:01 -0700 Subject: [PATCH] Add enable_pipelined_commit as deprecated option Signed-off-by: Yang Zhang --- options/db_options.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/options/db_options.cc b/options/db_options.cc index 2c03fb37826..44f1ca91c5e 100644 --- a/options/db_options.cc +++ b/options/db_options.cc @@ -327,6 +327,9 @@ static std::unordered_map {offsetof(struct ImmutableDBOptions, enable_pipelined_write), OptionType::kBoolean, OptionVerificationType::kNormal, OptionTypeFlags::kNone}}, + {"enable_pipelined_commit", + {0, OptionType::kBoolean, OptionVerificationType::kDeprecated, + OptionTypeFlags::kNone}}, {"enable_multi_batch_write", {offsetof(struct ImmutableDBOptions, enable_multi_batch_write), OptionType::kBoolean, OptionVerificationType::kNormal, @@ -922,8 +925,7 @@ void ImmutableDBOptions::Dump(Logger* log) const { ROCKS_LOG_HEADER(log, " Options.wal_compression: %d", wal_compression); ROCKS_LOG_HEADER(log, " Options.atomic_flush: %d", atomic_flush); - ROCKS_LOG_HEADER(log, - " Options.avoid_unnecessary_blocking_io: %d", + ROCKS_LOG_HEADER(log, " Options.avoid_unnecessary_blocking_io: %d", avoid_unnecessary_blocking_io); ROCKS_LOG_HEADER(log, " Options.persist_stats_to_disk: %u", persist_stats_to_disk); @@ -1060,14 +1062,13 @@ void MutableDBOptions::Dump(Logger* log) const { ROCKS_LOG_HEADER(log, " Options.wal_bytes_per_sync: %" PRIu64, wal_bytes_per_sync); - ROCKS_LOG_HEADER(log, - " Options.strict_bytes_per_sync: %d", + ROCKS_LOG_HEADER(log, " Options.strict_bytes_per_sync: %d", strict_bytes_per_sync); ROCKS_LOG_HEADER(log, " Options.compaction_readahead_size: %" ROCKSDB_PRIszt, compaction_readahead_size); ROCKS_LOG_HEADER(log, " Options.max_background_flushes: %d", - max_background_flushes); + max_background_flushes); ROCKS_LOG_HEADER(log, "Options.daily_offpeak_time_utc: %s", daily_offpeak_time_utc.c_str()); }