Fix integer overflow of the track changes counter
This commit is contained in:
parent
3e83935994
commit
fcb4fdc99d
@ -2908,7 +2908,7 @@ void beforeSleep(struct aeEventLoop *eventLoop) {
|
|||||||
static thread_local bool fFirstRun = true;
|
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
|
// 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
|
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) {
|
if (!fFirstRun) {
|
||||||
mstime_t storage_process_latency;
|
mstime_t storage_process_latency;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user