diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2013-12-11 02:36:16 -0800 |
---|---|---|
committer | Salvatore Sanfilippo <antirez@gmail.com> | 2013-12-11 02:36:16 -0800 |
commit | ce7588c43ead215305166f4fac08b28baf4581ea (patch) | |
tree | c59436291e22b0e2bfa463db9dcc98f1ce6d2a3d | |
parent | e4c6458a946bbcc2bbb9c98a6c82dd5280b9d565 (diff) | |
parent | 63627dfe752c674d5f063294a052ba411f2aa3f1 (diff) | |
download | redis-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.h | 2 |
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 */ |