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
43ed3c35
Commit
43ed3c35
authored
Jun 16, 2020
by
antirez
Committed by
Oran Agra
Jul 20, 2020
Browse files
Tracking: fix enableBcastTrackingForPrefix() invalid sdslen() call.
Related to #7387. (cherry picked from commit
78447993
)
parent
8095daea
Changes
1
Show whitespace changes
Inline
Side-by-side
src/tracking.c
View file @
43ed3c35
...
...
@@ -102,7 +102,7 @@ void disableTracking(client *c) {
/* Set the client 'c' to track the prefix 'prefix'. If the client 'c' is
* already registered for the specified prefix, no operation is performed. */
void
enableBcastTrackingForPrefix
(
client
*
c
,
char
*
prefix
,
size_t
plen
)
{
bcastState
*
bs
=
raxFind
(
PrefixTable
,(
unsigned
char
*
)
prefix
,
sdslen
(
prefix
)
);
bcastState
*
bs
=
raxFind
(
PrefixTable
,(
unsigned
char
*
)
prefix
,
plen
);
/* If this is the first client subscribing to such prefix, create
* the prefix in the table. */
if
(
bs
==
raxNotFound
)
{
...
...
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