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:
YaacovHazan 2024-02-12 21:55:37 +02:00 committed by GitHub
parent 7ca0b84af6
commit e9c795e777
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}