Commit ea3a20c5 authored by antirez's avatar antirez
Browse files

Change INFO CLIENTS sections to report pre-computed max/min client buffers.

parent 8f7e496b
...@@ -3081,17 +3081,17 @@ sds genRedisInfoString(char *section) { ...@@ -3081,17 +3081,17 @@ sds genRedisInfoString(char *section) {
/* Clients */ /* Clients */
if (allsections || defsections || !strcasecmp(section,"clients")) { if (allsections || defsections || !strcasecmp(section,"clients")) {
unsigned long lol, bib; size_t maxin, maxout;
getClientsMaxBuffers(&lol,&bib); getExpansiveClientsInfo(&maxin,&maxout);
if (sections++) info = sdscat(info,"\r\n"); if (sections++) info = sdscat(info,"\r\n");
info = sdscatprintf(info, info = sdscatprintf(info,
"# Clients\r\n" "# Clients\r\n"
"connected_clients:%lu\r\n" "connected_clients:%lu\r\n"
"client_longest_output_list:%lu\r\n" "client_max_input_buffer:%zu\r\n"
"client_biggest_input_buf:%lu\r\n" "client_max_output_buffer:%zu\r\n"
"blocked_clients:%d\r\n", "blocked_clients:%d\r\n",
listLength(server.clients)-listLength(server.slaves), listLength(server.clients)-listLength(server.slaves),
lol, bib, maxin, maxout,
server.blocked_clients); server.blocked_clients);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment