From 2956367731305f73005b44b26d6f665564731de3 Mon Sep 17 00:00:00 2001 From: Binbin Date: Thu, 24 Oct 2024 21:53:05 +0800 Subject: [PATCH] Maintain return value of rdbSaveDb after writing slot-info aux (#1222) All other places written in this function are maintained it, although the caller of rdbSaveDb does not reply on it, it is maintained to be consistent with other places, is its duty. Signed-off-by: Binbin --- src/rdb.c | 1 + 1 file changed, 1 insertion(+) 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); }