From 3427e9bf862920c6846fa621aa784f30547b8788 Mon Sep 17 00:00:00 2001 From: Axlgrep Date: Fri, 18 Jan 2019 16:16:58 +0800 Subject: [PATCH] bugfix config item maxmemory overflow (#469) --- src/pika_admin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pika_admin.cc b/src/pika_admin.cc index dc2b891f4f..cac48c25be 100644 --- a/src/pika_admin.cc +++ b/src/pika_admin.cc @@ -1011,7 +1011,7 @@ void ConfigCmd::ConfigGet(std::string &ret) { if (slash::stringmatch(pattern.data(), "maxmemory", 1)) { elements += 2; EncodeString(&config_body, "maxmemory"); - EncodeInt32(&config_body, g_pika_conf->write_buffer_size()); + EncodeInt64(&config_body, g_pika_conf->write_buffer_size()); } if (slash::stringmatch(pattern.data(), "write-buffer-size", 1)) {