Added new INFO fields related to the new AOF auto rewrite feature

This commit is contained in:
antirez 2011-06-10 14:52:47 +02:00
parent 4f948300bc
commit d630abcdaf

View File

@ -1393,6 +1393,16 @@ sds genRedisInfoString(char *section) {
server.lastsave,
server.bgrewritechildpid != -1);
if (server.appendonly) {
info = sdscatprintf(info,
"aof_current_size:%lld\r\n"
"aof_base_size:%lld\r\n"
"aof_pending_rewrite:%d\r\n",
(long long) server.appendonly_current_size,
(long long) server.auto_aofrewrite_base_size,
server.aofrewrite_scheduled);
}
if (server.loading) {
double perc;
time_t eta, elapsed;