mirror of
https://github.com/fluencelabs/redis
synced 2025-05-01 21:42:13 +00:00
Fixed pfadd/pfcount commands emitting hll* events instead of pf* events
This commit is contained in:
parent
21c9372454
commit
f403fca654
@ -475,7 +475,7 @@ void pfaddCommand(redisClient *c) {
|
|||||||
}
|
}
|
||||||
if (updated) {
|
if (updated) {
|
||||||
signalModifiedKey(c->db,c->argv[1]);
|
signalModifiedKey(c->db,c->argv[1]);
|
||||||
notifyKeyspaceEvent(REDIS_NOTIFY_STRING,"hlladd",c->argv[1],c->db->id);
|
notifyKeyspaceEvent(REDIS_NOTIFY_STRING,"pfadd",c->argv[1],c->db->id);
|
||||||
server.dirty++;
|
server.dirty++;
|
||||||
/* Invalidate the cached cardinality. */
|
/* Invalidate the cached cardinality. */
|
||||||
registers[REDIS_HLL_SIZE-1] |= (1<<7);
|
registers[REDIS_HLL_SIZE-1] |= (1<<7);
|
||||||
@ -602,7 +602,7 @@ void pfmergeCommand(redisClient *c) {
|
|||||||
signalModifiedKey(c->db,c->argv[1]);
|
signalModifiedKey(c->db,c->argv[1]);
|
||||||
/* We generate an HLLADD event for HLLMERGE for semantical simplicity
|
/* We generate an HLLADD event for HLLMERGE for semantical simplicity
|
||||||
* since in theory this is a mass-add of elements. */
|
* since in theory this is a mass-add of elements. */
|
||||||
notifyKeyspaceEvent(REDIS_NOTIFY_STRING,"hlladd",c->argv[1],c->db->id);
|
notifyKeyspaceEvent(REDIS_NOTIFY_STRING,"pfadd",c->argv[1],c->db->id);
|
||||||
server.dirty++;
|
server.dirty++;
|
||||||
addReply(c,shared.ok);
|
addReply(c,shared.ok);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user