From: antirez Date: Fri, 6 Apr 2012 19:12:50 +0000 (+0200) Subject: New INFO field in persistence section: bgrewriteaof_scheduled. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/8d3f5ce9dbb7d5e349f457f5909830a35318923f New INFO field in persistence section: bgrewriteaof_scheduled. --- diff --git a/src/redis.c b/src/redis.c index a6931876..14812cf0 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1793,14 +1793,16 @@ sds genRedisInfoString(char *section) { "bgsave_in_progress:%d\r\n" "last_save_time:%ld\r\n" "last_bgsave_status:%s\r\n" - "bgrewriteaof_in_progress:%d\r\n", + "bgrewriteaof_in_progress:%d\r\n" + "bgrewriteaof_scheduled:%d\r\n", server.loading, server.aof_state != REDIS_AOF_OFF, server.dirty, server.rdb_child_pid != -1, server.lastsave, server.lastbgsave_status == REDIS_OK ? "ok" : "err", - server.aof_child_pid != -1); + server.aof_child_pid != -1, + server.aof_rewrite_scheduled); if (server.aof_state != REDIS_AOF_OFF) { info = sdscatprintf(info,