Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
1c95c075
Commit
1c95c075
authored
Jul 19, 2018
by
antirez
Browse files
Make vars used only by INFO CLIENTS local to the block.
Related to #4727.
parent
16b8d364
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
1c95c075
...
@@ -2955,7 +2955,6 @@ sds genRedisInfoString(char *section) {
...
@@ -2955,7 +2955,6 @@ sds genRedisInfoString(char *section) {
time_t
uptime
=
server
.
unixtime
-
server
.
stat_starttime
;
time_t
uptime
=
server
.
unixtime
-
server
.
stat_starttime
;
int
j
;
int
j
;
struct
rusage
self_ru
,
c_ru
;
struct
rusage
self_ru
,
c_ru
;
unsigned
long
lol
,
bib
;
int
allsections
=
0
,
defsections
=
0
;
int
allsections
=
0
,
defsections
=
0
;
int
sections
=
0
;
int
sections
=
0
;
...
@@ -3034,6 +3033,7 @@ sds genRedisInfoString(char *section) {
...
@@ -3034,6 +3033,7 @@ sds genRedisInfoString(char *section) {
/* Clients */
/* Clients */
if
(
allsections
||
defsections
||
!
strcasecmp
(
section
,
"clients"
))
{
if
(
allsections
||
defsections
||
!
strcasecmp
(
section
,
"clients"
))
{
unsigned
long
lol
,
bib
;
getClientsMaxBuffers
(
&
lol
,
&
bib
);
getClientsMaxBuffers
(
&
lol
,
&
bib
);
if
(
sections
++
)
info
=
sdscat
(
info
,
"
\r\n
"
);
if
(
sections
++
)
info
=
sdscat
(
info
,
"
\r\n
"
);
info
=
sdscatprintf
(
info
,
info
=
sdscatprintf
(
info
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment