key miss stat increment was misplaced (#8630)

The implication is that OBJECT command would was not updating stat_keyspace_misses
This commit is contained in:
Oran Agra 2021-03-10 13:20:06 +02:00 committed by GitHub
parent 95d6297db8
commit 62a197516b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}