diff options
author | antirez <antirez@gmail.com> | 2016-08-09 16:41:40 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-08-09 16:41:40 +0200 |
commit | feda52381de20a6ac8ec993d20fdbaca863c0a75 (patch) | |
tree | 386a60288bbe69108c1b36645335e859d34a1a4d /src/server.h | |
parent | 4426cb11e28dd35c08ac45282fb2a7a42a7638af (diff) | |
download | redis-feda52381de20a6ac8ec993d20fdbaca863c0a75.tar.gz |
RDB AOF preamble: WIP 2.
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h index 2bc985cbb..a5f0ee1a6 100644 --- a/src/server.h +++ b/src/server.h @@ -137,6 +137,7 @@ typedef long long mstime_t; /* millisecond time type. */ #define CONFIG_DEFAULT_AOF_FILENAME "appendonly.aof" #define CONFIG_DEFAULT_AOF_NO_FSYNC_ON_REWRITE 0 #define CONFIG_DEFAULT_AOF_LOAD_TRUNCATED 1 +#define CONFIG_DEFAULT_AOF_USE_RDB_PREAMBLE 0 #define CONFIG_DEFAULT_ACTIVE_REHASHING 1 #define CONFIG_DEFAULT_AOF_REWRITE_INCREMENTAL_FSYNC 1 #define CONFIG_DEFAULT_MIN_SLAVES_TO_WRITE 0 @@ -901,6 +902,7 @@ struct redisServer { int aof_last_write_status; /* C_OK or C_ERR */ int aof_last_write_errno; /* Valid if aof_last_write_status is ERR */ int aof_load_truncated; /* Don't stop on unexpected AOF EOF. */ + int aof_use_rdb_preamble; /* Use RDB preamble on AOF rewrites. */ /* AOF pipes used to communicate between parent and child during rewrite. */ int aof_pipe_write_data_to_child; int aof_pipe_read_data_from_parent; @@ -1379,6 +1381,7 @@ int startAppendOnly(void); void backgroundRewriteDoneHandler(int exitcode, int bysignal); void aofRewriteBufferReset(void); unsigned long aofRewriteBufferSize(void); +ssize_t aofReadDiffFromParent(void); /* Sorted sets data type */ |