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

Fix loading rdb opcode RDB_OPCODE_RESIZEDB (#13050)

Following the changes introduced by 8cd62f82

, the dbExpandExpires used
the db_size instead of expires_size.
Co-authored-by: default avatarYaacovHazan <yaacov.hazan@redislabs.com>
parent 7ca0b84a
...@@ -3262,7 +3262,7 @@ int rdbLoadRioWithLoadingCtx(rio *rdb, int rdbflags, rdbSaveInfo *rsi, rdbLoadin ...@@ -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;
} }
......
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