mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 08:08:53 -05:00
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 <yaacov.hazan@redislabs.com>
This commit is contained in:
parent
8eeece4ab3
commit
7ca0b84af6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user