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