]> git.saurik.com Git - redis.git/blobdiff - src/redis.h
Fix for a race in BGSAVE that may result in some data not being saved as soon as...
[redis.git] / src / redis.h
index a4fdcb197de8ff786bedbec8b4530137503cf468..9e27d724854e1788199286f83e9437c81b7df954 100644 (file)
@@ -335,6 +335,7 @@ struct redisServer {
     int fd;
     redisDb *db;
     long long dirty;            /* changes to DB from the last save */
+    long long dirty_before_bgsave; /* used to restore dirty on failed BGSAVE */
     list *clients;
     list *slaves, *monitors;
     char neterr[ANET_ERR_LEN];