From 62a197516b0c114f96122d40f81f79a45d614981 Mon Sep 17 00:00:00 2001 From: Oran Agra Date: Wed, 10 Mar 2021 13:20:06 +0200 Subject: [PATCH] key miss stat increment was misplaced (#8630) The implication is that OBJECT command would was not updating stat_keyspace_misses --- src/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.c b/src/db.c index 57705f003..2660ad876 100644 --- a/src/db.c +++ b/src/db.c @@ -139,9 +139,9 @@ robj *lookupKeyReadWithFlags(redisDb *db, robj *key, int flags) { keymiss: if (!(flags & LOOKUP_NONOTIFY)) { - server.stat_keyspace_misses++; notifyKeyspaceEvent(NOTIFY_KEY_MISS, "keymiss", key, db->id); } + server.stat_keyspace_misses++; return NULL; }