mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Added new INFO fields related to the new AOF auto rewrite feature
This commit is contained in:
parent
4f948300bc
commit
d630abcdaf
10
src/redis.c
10
src/redis.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user