]> git.saurik.com Git - redis.git/commit - src/aof.c
Four new persistence fields in INFO. A few renamed.
authorantirez <antirez@gmail.com>
Fri, 25 May 2012 10:11:30 +0000 (12:11 +0200)
committerantirez <antirez@gmail.com>
Fri, 25 May 2012 10:11:30 +0000 (12:11 +0200)
commit33e1db36fa3948c8b9baa3991fd40e7f6b31fb9e
treea83db316e8b151fa9ac0d2d10cd6684f30645607
parentd866803818fb47a851e5730ccff634f993ce6f68
Four new persistence fields in INFO. A few renamed.

The 'persistence' section of INFO output now contains additional four
fields related to RDB and AOF persistence:

 rdb_last_bgsave_time_sec       Duration of latest BGSAVE in sec.
 rdb_current_bgsave_time_sec    Duration of current BGSAVE in sec.
 aof_last_rewrite_time_sec      Duration of latest AOF rewrite in sec.
 aof_current_rewrite_time_sec   Duration of current AOF rewrite in sec.

The 'current' fields are set to -1 if a BGSAVE / AOF rewrite is not in
progress. The 'last' fileds are set to -1 if no previous BGSAVE / AOF
rewrites were performed.

Additionally a few fields in the persistence section were renamed for
consistency:

 changes_since_last_save -> rdb_changes_since_last_save
 bgsave_in_progress -> rdb_bgsave_in_progress
 last_save_time -> rdb_last_save_time
 last_bgsave_status -> rdb_last_bgsave_status
 bgrewriteaof_in_progress -> aof_rewrite_in_progress
 bgrewriteaof_scheduled -> aof_rewrite_scheduled

After the renaming, fields in the persistence section start with rdb_ or
aof_ prefix depending on the persistence method they describe.
The field 'loading' and related fields are not prefixed because they are
unique for both the persistence methods.
src/aof.c
src/rdb.c
src/redis.c
src/redis.h