From aef0bd877fc23c60f32bcdb177ddfc40737f6003 Mon Sep 17 00:00:00 2001 From: John Sully Date: Mon, 26 Jul 2021 22:30:31 +0000 Subject: [PATCH] Fix issue collab #32 Former-commit-id: 0d192cf00ebe9fc0d898404b86e1173476edaefb --- src/evict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evict.cpp b/src/evict.cpp index 802784633..84bf21c36 100644 --- a/src/evict.cpp +++ b/src/evict.cpp @@ -832,7 +832,7 @@ int performEvictions(bool fPreSnapshot) { /* After some time, exit the loop early - even if memory limit * hasn't been reached. If we suddenly need to free a lot of * memory, don't want to spend too much time here. */ - if (elapsedUs(evictionTimer) > eviction_time_limit_us) { + if (g_pserver->m_pstorageFactory == nullptr && elapsedUs(evictionTimer) > eviction_time_limit_us) { // We still need to free memory - start eviction timer proc if (!isEvictionProcRunning && serverTL->el != nullptr) { isEvictionProcRunning = 1;