Commit f4eb64cd authored by pan.liangp's avatar pan.liangp
Browse files

move get clients max buffer calculate into info clients command

parent 84b28120
...@@ -2866,7 +2866,6 @@ sds genRedisInfoString(char *section) { ...@@ -2866,7 +2866,6 @@ sds genRedisInfoString(char *section) {
getrusage(RUSAGE_SELF, &self_ru); getrusage(RUSAGE_SELF, &self_ru);
getrusage(RUSAGE_CHILDREN, &c_ru); getrusage(RUSAGE_CHILDREN, &c_ru);
getClientsMaxBuffers(&lol,&bib);
/* Server */ /* Server */
if (allsections || defsections || !strcasecmp(section,"server")) { if (allsections || defsections || !strcasecmp(section,"server")) {
...@@ -2936,6 +2935,7 @@ sds genRedisInfoString(char *section) { ...@@ -2936,6 +2935,7 @@ sds genRedisInfoString(char *section) {
/* Clients */ /* Clients */
if (allsections || defsections || !strcasecmp(section,"clients")) { if (allsections || defsections || !strcasecmp(section,"clients")) {
getClientsMaxBuffers(&lol,&bib);
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"
......
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