Skip to content

Commit

Permalink
Add write_buffer_manager to the DBOptions log
Browse files Browse the repository at this point in the history
  • Loading branch information
mrambacher committed Nov 22, 2023
1 parent 7ba5c35 commit 5c185ed
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions options/db_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -703,16 +703,29 @@ class DBOptionsConfigurable : public MutableDBConfigurable {
props->insert({"row_cache", kNullptrString});
}
if (immutable_.statistics) {
props->insert(
{"statistics", immutable_.statistics->ToString(config_options)});
props->insert({"statistics",
immutable_.statistics->ToString(
config_options,
OptionTypeInfo::MakePrefix(prefix, "statistics"))});
} else {
props->insert({"statistics", kNullptrString});
}
if (immutable_.env) {
props->insert({"env", immutable_.env->ToString(config_options)});
props->insert({"env", immutable_.env->ToString(
config_options,
OptionTypeInfo::MakePrefix(prefix, "env"))});

} else {
props->insert({"env", kNullptrString});
}
if (immutable_.write_buffer_manager) {
props->insert({"write_buffer_manager",
immutable_.write_buffer_manager->ToString(
config_options, OptionTypeInfo::MakePrefix(
prefix, "write_buffer_manager"))});
} else {
props->insert({"write_buffer_manager", kNullptrString});
}
snprintf(buffer, kBufferSize, "(%p)", immutable_.rate_limiter.get());
props->insert({"rate_limiter", buffer});
snprintf(buffer, kBufferSize, "(%p)", immutable_.info_log.get());
Expand Down

0 comments on commit 5c185ed

Please sign in to comment.