diff --git a/src/rdb.c b/src/rdb.c index e5ec4d8f3e..1c200e54f5 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -1355,6 +1355,7 @@ ssize_t rdbSaveDb(rio *rdb, int dbid, int rdbflags, long *key_counter) { sdsfree(slot_info); goto werr; } + written += res; last_slot = curr_slot; sdsfree(slot_info); }