From 6dabfd15fef2c2724f135b3d60e9bd4e8982af8c Mon Sep 17 00:00:00 2001 From: repls Date: Fri, 1 Apr 2022 16:02:01 +0800 Subject: [PATCH] bugfix: 2 config parameters from command 'config get' duplicate (#1154) - small-compaction-threshold - max-cache-statistic-keys Co-authored-by: repls --- src/pika_admin.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/pika_admin.cc b/src/pika_admin.cc index 4d784b9a..1e85709b 100644 --- a/src/pika_admin.cc +++ b/src/pika_admin.cc @@ -1469,18 +1469,6 @@ void ConfigCmd::ConfigGet(std::string &ret) { EncodeInt32(&config_body, g_pika_conf->binlog_file_size()); } - if (slash::stringmatch(pattern.data(), "max-cache-statistic-keys", 1)) { - elements += 2; - EncodeString(&config_body, "max-cache-statistic-keys"); - EncodeInt32(&config_body, g_pika_conf->max_cache_statistic_keys()); - } - - if (slash::stringmatch(pattern.data(), "small-compaction-threshold", 1)) { - elements += 2; - EncodeString(&config_body, "small-compaction-threshold"); - EncodeInt32(&config_body, g_pika_conf->small_compaction_threshold()); - } - if (slash::stringmatch(pattern.data(), "max-write-buffer-size", 1)) { elements += 2; EncodeString(&config_body, "max-write-buffer-size"); -- GitLab