Permalink
Browse files

Merge pull request #847 from yossigo/repldboff-fix

Fix wrong repldboff type which causes dropped replication in rare cases.
  • Loading branch information...
2 parents e4c6458 + 63627df commit ce7588c43ead215305166f4fac08b28baf4581ea @antirez committed Dec 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/redis.h
View
@@ -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 */

0 comments on commit ce7588c

Please sign in to comment.