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
f4eb64cd
Commit
f4eb64cd
authored
Mar 02, 2018
by
pan.liangp
Browse files
move get clients max buffer calculate into info clients command
parent
84b28120
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
f4eb64cd
...
@@ -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
"
...
...
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