From 77bc0afad426d78f8f3c7f878df50cea30597ec3 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 3 Apr 2023 14:59:26 +0000 Subject: [PATCH] add key eviction number for storage --- src/evict.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/evict.cpp b/src/evict.cpp index 719e7a761..d9f5338b4 100644 --- a/src/evict.cpp +++ b/src/evict.cpp @@ -771,6 +771,7 @@ int performEvictions(bool fPreSnapshot) { if (db->removeCachedValue(bestkey, &deT)) { mem_freed += splazy->addEntry(db->dictUnsafeKeyOnly(), deT); ckeysFailed = 0; + g_pserver->stat_evictedkeys++; } else { delta = 0;