mirror of https://mirror.osredm.com/root/redis.git
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. */
|
* In this case we want to estimate number of keys per slot and resize accordingly. */
|
||||||
if (should_expand_db) {
|
if (should_expand_db) {
|
||||||
dbExpand(db, db_size, 0);
|
dbExpand(db, db_size, 0);
|
||||||
dbExpandExpires(db, db_size, 0);
|
dbExpandExpires(db, expires_size, 0);
|
||||||
should_expand_db = 0;
|
should_expand_db = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue