]> git.saurik.com Git - redis.git/commit
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:20:35 +0000 (12:20 +0200)
commit6b4d92e21de8b7937fb7f71c0c12b72e18554fb4
tree7e64903fa284fc6408e688f87dda270e3a0016fa
parent8bbc0768b8a2c1e2cf5d157f75cd08ea8576bcc3
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