From 88a5cede882ee4268685acae5ef6c8660f7f4e44 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 42f531ea..d9f8cc08 100644 --- a/src/redis.h +++ b/src/redis.h @@ -485,7 +485,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 */ sds replpreamble; /* replication DB preamble. */ long long reploff; /* replication offset if this is our master */