Browse files

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

  • Loading branch information...
1 parent 4468ba2 commit 63627dfe752c674d5f063294a052ba411f2aa3f1 @yossigo committed Dec 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/redis.h
View
2 src/redis.h
@@ -399,7 +399,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 63627df

Please sign in to comment.