summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2013-12-11 02:36:16 -0800
committerSalvatore Sanfilippo <antirez@gmail.com>2013-12-11 02:36:16 -0800
commitce7588c43ead215305166f4fac08b28baf4581ea (patch)
treec59436291e22b0e2bfa463db9dcc98f1ce6d2a3d
parente4c6458a946bbcc2bbb9c98a6c82dd5280b9d565 (diff)
parent63627dfe752c674d5f063294a052ba411f2aa3f1 (diff)
downloadredis-ce7588c43ead215305166f4fac08b28baf4581ea.tar.gz
Merge pull request #847 from yossigo/repldboff-fix
Fix wrong repldboff type which causes dropped replication in rare cases.
-rw-r--r--src/redis.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis.h b/src/redis.h
index 8d3f69744..d1b6c8874 100644
--- a/src/redis.h
+++ b/src/redis.h
@@ -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 */