未验证 提交 6dabfd15 编写于 作者: R repls 提交者: GitHub

bugfix: 2 config parameters from command 'config get' duplicate (#1154)

- small-compaction-threshold
- max-cache-statistic-keys
Co-authored-by: Nrepls <bosen@staff.sina.com.cn>
上级 6a4baa67
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册