Merge pull request #4727 from kingpeterpaule/redis-fix-info-cli

move getClientsMaxBuffers func into  info clients command
This commit is contained in:
Salvatore Sanfilippo 2018-07-19 12:21:35 +02:00 committed by GitHub
commit 16b8d364cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2965,7 +2965,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")) {
@ -3035,6 +3034,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"