From 56edd3f759c30b4ba160cb5f6a60e93029e453e8 Mon Sep 17 00:00:00 2001 From: John Sully Date: Mon, 17 Feb 2020 22:26:48 -0500 Subject: [PATCH] override eviction policy for flash Former-commit-id: 48a4f967e66ba765be96c9f8e113f808a4390f88 --- src/config.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config.cpp b/src/config.cpp index 3434afc36..4e2153290 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -327,6 +327,10 @@ bool initializeStorageProvider(const char **err) g_pserver->maxmemory_policy = MAXMEMORY_ALLKEYS_LRU; } } + else if (g_pserver->maxmemory_policy == MAXMEMORY_NO_EVICTION) + { + g_pserver->maxmemory_policy = MAXMEMORY_ALLKEYS_LRU; + } } else {