mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Change INFO CLIENTS sections to report pre-computed max/min client buffers.
This commit is contained in:
parent
8f7e496ba5
commit
ea3a20c5d0
10
src/server.c
10
src/server.c
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user