Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
baixin01 committed Jul 5, 2024
1 parent 983a5b8 commit 5c80dbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/pika_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,9 @@ class PikaConf : public pstd::BaseConf {

void SetOpenRocksdbStatisticsTickers(const std::string& value) {
std::lock_guard l(rwlock_);
TryPushDiffCommands("open-rocksdb-statistics-tickers", value);
std::string lower_value = value;
pstd::StringToLower(lower_value);
TryPushDiffCommands("open-rocksdb-statistics-tickers", lower_value);
open_rocksdb_statistics_tickers_ = value == "yes";
}

Expand Down
1 change: 1 addition & 0 deletions src/pika_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2870,6 +2870,7 @@ void ConfigCmd::ConfigSet(std::shared_ptr<DB> db) {
return;
}
g_pika_conf->SetOpenRocksdbStatisticsTickers(value);
res_.AppendStringRaw("+OK\r\n");
} else {
res_.AppendStringRaw("-ERR Unsupported CONFIG parameter: " + set_item + "\r\n");
}
Expand Down

0 comments on commit 5c80dbf

Please sign in to comment.