fix warnings

This commit is contained in:
Malavan Sotheeswaran 2022-08-17 10:31:30 -07:00
parent a8f6132862
commit c5cd0d89f8

View File

@ -3115,10 +3115,10 @@ int rdbLoadRio(rio *rdb, int rdbflags, rdbSaveInfo *rsi) {
std::unique_ptr<rdbInsertJob> spjob;
// If we're tracking changes we need to reset this
bool fTracking[cserver.dbnum];
std::vector<bool> fTracking(cserver.dbnum);
// We don't want to track here because processChangesAsync is outside the normal scope handling
for (int idb = 0; idb < cserver.dbnum; ++idb) {
if (fTracking[idb] = g_pserver->db[idb]->FTrackingChanges())
if ((fTracking[idb] = g_pserver->db[idb]->FTrackingChanges()))
if (g_pserver->db[idb]->processChanges(false))
g_pserver->db[idb]->commitChanges();
}