diff --git a/src/server.cpp b/src/server.cpp index 4ba9e73f5..4fb5df41f 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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 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;