Don't expand the dictionary if a storage provider is set as we won't use the whole thing

Former-commit-id: 1f07b01144397cec59ec2d94f41c85eceb7248e2
This commit is contained in:
John Sully 2021-10-04 07:33:38 +00:00
parent d29df021b1
commit 86ec032e2c

View File

@ -3047,7 +3047,7 @@ int rdbLoadRio(rio *rdb, int rdbflags, rdbSaveInfo *rsi) {
goto eoferr;
if ((expires_size = rdbLoadLen(rdb,NULL)) == RDB_LENERR)
goto eoferr;
if (g_pserver->allowRdbResizeOp) {
if (g_pserver->allowRdbResizeOp && !g_pserver->m_pstorageFactory) {
wqueue.enqueue([dbCur, db_size]{
dbCur->expand(db_size);
});