From 05841a638697c0bbbc90bf2dc2da90659b71c26a Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 7 Feb 2015 09:54:07 +0100 Subject: [PATCH] redis-cli --stat: show LOAD when loading. --- src/redis-cli.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/redis-cli.c b/src/redis-cli.c index d2460a10b..8db34bcaf 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -1945,6 +1945,7 @@ static void statMode(void) { /* Children */ aux = getLongInfoField(reply->str,"bgsave_in_progress"); aux |= getLongInfoField(reply->str,"aof_rewrite_in_progress") << 1; + aux |= getLongInfoField(reply->str,"loading") << 2; switch(aux) { case 0: break; case 1: @@ -1956,6 +1957,9 @@ static void statMode(void) { case 3: printf("SAVE+AOF"); break; + case 4: + printf("LOAD"); + break; } printf("\n");