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) {