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

This commit is contained in:
Yossi Gottlieb
2012-12-24 23:10:41 +02:00
committed by antirez
parent 563d6b3f98
commit 25ba2e9607

View File

@ -466,7 +466,7 @@ typedef struct redisClient {
int authenticated; /* when requirepass is non-NULL */
int replstate; /* replication state if this is a slave */
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 */
long long reploff; /* replication offset if this is our master */
long long repl_ack_off; /* replication ack offset, if this is a slave */