Commit aea23a48 authored by antirez's avatar antirez
Browse files

redis-cli --stat: show LOAD when loading.

parent 3bcbdfd3
...@@ -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");
......
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