Skip to content

Commit

Permalink
bugfix config item maxmemory overflow (OpenAtomFoundation#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
Axlgrep authored Jan 18, 2019
1 parent 0da474e commit 3427e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pika_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 3427e9b

Please sign in to comment.