Skip to content

Commit d425a86

Browse files
authored
Add enable_pipelined_commit as deprecated option (#397)
Signed-off-by: Yang Zhang <[email protected]>
1 parent cf9cd5b commit d425a86

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

options/db_options.cc

+6-5
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ static std::unordered_map<std::string, OptionTypeInfo>
327327
{offsetof(struct ImmutableDBOptions, enable_pipelined_write),
328328
OptionType::kBoolean, OptionVerificationType::kNormal,
329329
OptionTypeFlags::kNone}},
330+
{"enable_pipelined_commit",
331+
{0, OptionType::kBoolean, OptionVerificationType::kDeprecated,
332+
OptionTypeFlags::kNone}},
330333
{"enable_multi_batch_write",
331334
{offsetof(struct ImmutableDBOptions, enable_multi_batch_write),
332335
OptionType::kBoolean, OptionVerificationType::kNormal,
@@ -922,8 +925,7 @@ void ImmutableDBOptions::Dump(Logger* log) const {
922925
ROCKS_LOG_HEADER(log, " Options.wal_compression: %d",
923926
wal_compression);
924927
ROCKS_LOG_HEADER(log, " Options.atomic_flush: %d", atomic_flush);
925-
ROCKS_LOG_HEADER(log,
926-
" Options.avoid_unnecessary_blocking_io: %d",
928+
ROCKS_LOG_HEADER(log, " Options.avoid_unnecessary_blocking_io: %d",
927929
avoid_unnecessary_blocking_io);
928930
ROCKS_LOG_HEADER(log, " Options.persist_stats_to_disk: %u",
929931
persist_stats_to_disk);
@@ -1060,14 +1062,13 @@ void MutableDBOptions::Dump(Logger* log) const {
10601062
ROCKS_LOG_HEADER(log,
10611063
" Options.wal_bytes_per_sync: %" PRIu64,
10621064
wal_bytes_per_sync);
1063-
ROCKS_LOG_HEADER(log,
1064-
" Options.strict_bytes_per_sync: %d",
1065+
ROCKS_LOG_HEADER(log, " Options.strict_bytes_per_sync: %d",
10651066
strict_bytes_per_sync);
10661067
ROCKS_LOG_HEADER(log,
10671068
" Options.compaction_readahead_size: %" ROCKSDB_PRIszt,
10681069
compaction_readahead_size);
10691070
ROCKS_LOG_HEADER(log, " Options.max_background_flushes: %d",
1070-
max_background_flushes);
1071+
max_background_flushes);
10711072
ROCKS_LOG_HEADER(log, "Options.daily_offpeak_time_utc: %s",
10721073
daily_offpeak_time_utc.c_str());
10731074
}

0 commit comments

Comments
 (0)