From 7ca0b84af6129aaa1be4d78cf83222cfbd47966b Mon Sep 17 00:00:00 2001 From: YaacovHazan <31382944+YaacovHazan@users.noreply.github.com> Date: Mon, 12 Feb 2024 21:46:06 +0200 Subject: [PATCH] Fix loading rdb opcode RDB_OPCODE_SLOT_INFO (#13049) Following the changes introduced by 8cd62f82c, the kvstoreDictExpand for the expires kvstore used the slot_size instead of expires_slot_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 48a0c61c1..f54f8f894 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -3127,7 +3127,7 @@ int rdbLoadRioWithLoadingCtx(rio *rdb, int rdbflags, rdbSaveInfo *rsi, rdbLoadin } /* In cluster mode we resize individual slot specific dictionaries based on the number of keys that slot holds. */ kvstoreDictExpand(db->keys, slot_id, slot_size); - kvstoreDictExpand(db->expires, slot_id, slot_size); + kvstoreDictExpand(db->expires, slot_id, expires_slot_size); should_expand_db = 0; continue; /* Read next opcode. */ } else if (type == RDB_OPCODE_AUX) {