diff options
author | antirez <antirez@gmail.com> | 2015-07-27 09:41:48 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-07-27 14:37:58 +0200 |
commit | 32f80e2f1bf42d0508f1114a9dddd91c4719eb8e (patch) | |
tree | 66763c2803eb8a91c6b57e5e54e61d454888365c /src/hyperloglog.c | |
parent | 40eb548a80797b93cc733876654ff0978d7381cf (diff) | |
download | redis-32f80e2f1bf42d0508f1114a9dddd91c4719eb8e.tar.gz |
RDMF: More consistent define names.
Diffstat (limited to 'src/hyperloglog.c')
-rw-r--r-- | src/hyperloglog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hyperloglog.c b/src/hyperloglog.c index ffd2a9ec3..8ccc16be2 100644 --- a/src/hyperloglog.c +++ b/src/hyperloglog.c @@ -991,7 +991,7 @@ uint64_t hllCount(struct hllhdr *hdr, int *invalid) { } else if (hdr->encoding == HLL_RAW) { E = hllRawSum(hdr->registers,PE,&ez); } else { - redisPanic("Unknown HyperLogLog encoding in hllCount()"); + serverPanic("Unknown HyperLogLog encoding in hllCount()"); } /* Muliply the inverse of E for alpha_m * m^2 to have the raw estimate. */ @@ -1184,7 +1184,7 @@ void pfaddCommand(client *c) { hdr = o->ptr; if (updated) { signalModifiedKey(c->db,c->argv[1]); - notifyKeyspaceEvent(REDIS_NOTIFY_STRING,"pfadd",c->argv[1],c->db->id); + notifyKeyspaceEvent(NOTIFY_STRING,"pfadd",c->argv[1],c->db->id); server.dirty++; HLL_INVALIDATE_CACHE(hdr); } @@ -1337,7 +1337,7 @@ void pfmergeCommand(client *c) { signalModifiedKey(c->db,c->argv[1]); /* We generate an PFADD event for PFMERGE for semantical simplicity * since in theory this is a mass-add of elements. */ - notifyKeyspaceEvent(REDIS_NOTIFY_STRING,"pfadd",c->argv[1],c->db->id); + notifyKeyspaceEvent(NOTIFY_STRING,"pfadd",c->argv[1],c->db->id); server.dirty++; addReply(c,shared.ok); } |