Unverified Commit 7ca0b84a authored by YaacovHazan's avatar YaacovHazan Committed by GitHub
Browse files

Fix loading rdb opcode RDB_OPCODE_SLOT_INFO (#13049)

Following the changes introduced by 8cd62f82

, the kvstoreDictExpand for
the expires kvstore used the slot_size instead of expires_slot_size.
Co-authored-by: default avatarYaacovHazan <yaacov.hazan@redislabs.com>
parent 8eeece4a
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment