Commit 88a5cede authored by Yossi Gottlieb's avatar Yossi Gottlieb Committed by antirez
Browse files

Fix wrong repldboff type which causes dropped replication in rare cases.

parent 11120689
...@@ -485,7 +485,7 @@ typedef struct redisClient { ...@@ -485,7 +485,7 @@ typedef struct redisClient {
int authenticated; /* when requirepass is non-NULL */ int authenticated; /* when requirepass is non-NULL */
int replstate; /* replication state if this is a slave */ int replstate; /* replication state if this is a slave */
int repldbfd; /* replication DB file descriptor */ int repldbfd; /* replication DB file descriptor */
long repldboff; /* replication DB file offset */ off_t repldboff; /* replication DB file offset */
off_t repldbsize; /* replication DB file size */ off_t repldbsize; /* replication DB file size */
sds replpreamble; /* replication DB preamble. */ sds replpreamble; /* replication DB preamble. */
long long reploff; /* replication offset if this is our master */ long long reploff; /* replication offset if this is our master */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment