Merge pull request #847 from yossigo/repldboff-fix

Fix wrong repldboff type which causes dropped replication in rare cases.
This commit is contained in:
Salvatore Sanfilippo 2013-12-11 02:36:16 -08:00
commit ce7588c43e

View File

@ -410,7 +410,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 */
int slave_listening_port; /* As configured with: SLAVECONF listening-port */
multiState mstate; /* MULTI/EXEC state */