Fix integer overflow of the track changes counter

This commit is contained in:
John Sully 2022-08-26 17:36:23 +00:00
parent 3e83935994
commit fcb4fdc99d

View File

@ -2908,7 +2908,7 @@ void beforeSleep(struct aeEventLoop *eventLoop) {
static thread_local bool fFirstRun = true;
// note: we also copy the DB pointer in case a DB swap is done while the lock is released
std::vector<redisDb*> vecdb; // note we cache the database pointer in case a dbswap is done while the lock is released
if (cserver.storage_memory_model == STORAGE_WRITETHROUGH && g_pserver->m_pstorageFactory != nullptr && !g_pserver->loading)
if (cserver.storage_memory_model == STORAGE_WRITETHROUGH && !g_pserver->loading)
{
if (!fFirstRun) {
mstime_t storage_process_latency;