Commit 08ad5176 authored by antirez's avatar antirez
Browse files

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

parent eaae581b
...@@ -1943,6 +1943,7 @@ static void statMode(void) { ...@@ -1943,6 +1943,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:
...@@ -1954,6 +1955,9 @@ static void statMode(void) { ...@@ -1954,6 +1955,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