From 63627dfe752c674d5f063294a052ba411f2aa3f1 Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Mon, 24 Dec 2012 23:10:41 +0200 Subject: [PATCH] Fix wrong repldboff type which causes dropped replication in rare cases. --- src/redis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis.h b/src/redis.h index 071cb534..49a2264f 100644 --- a/src/redis.h +++ b/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 */