Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f403fca6
Commit
f403fca6
authored
Apr 01, 2014
by
Raymond Myers
Committed by
antirez
Apr 16, 2014
Browse files
Fixed pfadd/pfcount commands emitting hll* events instead of pf* events
parent
21c93724
Changes
1
Show whitespace changes
Inline
Side-by-side
src/hyperloglog.c
View file @
f403fca6
...
...
@@ -475,7 +475,7 @@ void pfaddCommand(redisClient *c) {
}
if
(
updated
)
{
signalModifiedKey
(
c
->
db
,
c
->
argv
[
1
]);
notifyKeyspaceEvent
(
REDIS_NOTIFY_STRING
,
"
hll
add"
,
c
->
argv
[
1
],
c
->
db
->
id
);
notifyKeyspaceEvent
(
REDIS_NOTIFY_STRING
,
"
pf
add"
,
c
->
argv
[
1
],
c
->
db
->
id
);
server
.
dirty
++
;
/* Invalidate the cached cardinality. */
registers
[
REDIS_HLL_SIZE
-
1
]
|=
(
1
<<
7
);
...
...
@@ -602,7 +602,7 @@ void pfmergeCommand(redisClient *c) {
signalModifiedKey
(
c
->
db
,
c
->
argv
[
1
]);
/* We generate an HLLADD event for HLLMERGE for semantical simplicity
* since in theory this is a mass-add of elements. */
notifyKeyspaceEvent
(
REDIS_NOTIFY_STRING
,
"
hll
add"
,
c
->
argv
[
1
],
c
->
db
->
id
);
notifyKeyspaceEvent
(
REDIS_NOTIFY_STRING
,
"
pf
add"
,
c
->
argv
[
1
],
c
->
db
->
id
);
server
.
dirty
++
;
addReply
(
c
,
shared
.
ok
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment