From e9c795e777591a96a5e7b0d28fbda64325b27a0c Mon Sep 17 00:00:00 2001 From: YaacovHazan <31382944+YaacovHazan@users.noreply.github.com> Date: Mon, 12 Feb 2024 21:55:37 +0200 Subject: [PATCH] Fix loading rdb opcode RDB_OPCODE_RESIZEDB (#13050) Following the changes introduced by 8cd62f82c, the dbExpandExpires used the db_size instead of expires_size. Co-authored-by: YaacovHazan --- src/rdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rdb.c b/src/rdb.c index f54f8f894..a633a4961 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -3262,7 +3262,7 @@ int rdbLoadRioWithLoadingCtx(rio *rdb, int rdbflags, rdbSaveInfo *rsi, rdbLoadin * In this case we want to estimate number of keys per slot and resize accordingly. */ if (should_expand_db) { dbExpand(db, db_size, 0); - dbExpandExpires(db, db_size, 0); + dbExpandExpires(db, expires_size, 0); should_expand_db = 0; }