summaryrefslogtreecommitdiff
path: root/src/db.c
diff options
context:
space:
mode:
authorDarrenJiang13 <yjjiang1996@163.com>2021-08-07 10:27:24 +0800
committerGitHub <noreply@github.com>2021-08-06 19:27:24 -0700
commit43eb0ce3bf76a5d287b93a767bead9ad6230a1ad (patch)
treec172843107f7a9b8463f5f277f8b0b04a2461826 /src/db.c
parent0a9377535b6fd42ca6affa1c939fb859950d8043 (diff)
downloadredis-43eb0ce3bf76a5d287b93a767bead9ad6230a1ad.tar.gz
[BUGFIX] Add some missed error statistics (#9328)
add error counting for some missed behaviors.
Diffstat (limited to 'src/db.c')
-rw-r--r--src/db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.c b/src/db.c
index 2e3009d7a..b4ecc7677 100644
--- a/src/db.c
+++ b/src/db.c
@@ -165,7 +165,7 @@ robj *lookupKeyWriteWithFlags(redisDb *db, robj *key, int flags) {
robj *lookupKeyWrite(redisDb *db, robj *key) {
return lookupKeyWriteWithFlags(db, key, LOOKUP_NONE);
}
-static void SentReplyOnKeyMiss(client *c, robj *reply){
+void SentReplyOnKeyMiss(client *c, robj *reply){
serverAssert(sdsEncodedObject(reply));
sds rep = reply->ptr;
if (sdslen(rep) > 1 && rep[0] == '-'){