mirror of https://mirror.osredm.com/root/redis.git
Tracking: fix enableBcastTrackingForPrefix() invalid sdslen() call.
Related to #7387.
(cherry picked from commit 784479939d
)
This commit is contained in:
parent
8095daea4a
commit
43ed3c3589
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue