提交 05841a63 编写于 作者: A antirez

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

上级 8696874d
...@@ -1945,6 +1945,7 @@ static void statMode(void) { ...@@ -1945,6 +1945,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:
...@@ -1956,6 +1957,9 @@ static void statMode(void) { ...@@ -1956,6 +1957,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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册