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
aea23a48
Commit
aea23a48
authored
Feb 07, 2015
by
antirez
Browse files
redis-cli --stat: show LOAD when loading.
parent
3bcbdfd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
aea23a48
...
@@ -1935,6 +1935,7 @@ static void statMode(void) {
...
@@ -1935,6 +1935,7 @@ static void statMode(void) {
/* Children */
/* Children */
aux
=
getLongInfoField
(
reply
->
str
,
"bgsave_in_progress"
);
aux
=
getLongInfoField
(
reply
->
str
,
"bgsave_in_progress"
);
aux
|=
getLongInfoField
(
reply
->
str
,
"aof_rewrite_in_progress"
)
<<
1
;
aux
|=
getLongInfoField
(
reply
->
str
,
"aof_rewrite_in_progress"
)
<<
1
;
aux
|=
getLongInfoField
(
reply
->
str
,
"loading"
)
<<
2
;
switch
(
aux
)
{
switch
(
aux
)
{
case
0
:
break
;
case
0
:
break
;
case
1
:
case
1
:
...
@@ -1946,6 +1947,9 @@ static void statMode(void) {
...
@@ -1946,6 +1947,9 @@ static void statMode(void) {
case
3
:
case
3
:
printf
(
"SAVE+AOF"
);
printf
(
"SAVE+AOF"
);
break
;
break
;
case
4
:
printf
(
"LOAD"
);
break
;
}
}
printf
(
"
\n
"
);
printf
(
"
\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