Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f59119aa
Commit
f59119aa
authored
Jul 18, 2019
by
zhaozhao.zz
Browse files
Client side caching: filter clients untracking
parent
6191ea90
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tracking.c
View file @
f59119aa
...
@@ -167,7 +167,7 @@ void trackingInvalidateKey(robj *keyobj) {
...
@@ -167,7 +167,7 @@ void trackingInvalidateKey(robj *keyobj) {
uint64_t
id
;
uint64_t
id
;
memcpy
(
&
id
,
ri
.
key
,
ri
.
key_len
);
memcpy
(
&
id
,
ri
.
key
,
ri
.
key_len
);
client
*
c
=
lookupClientByID
(
id
);
client
*
c
=
lookupClientByID
(
id
);
if
(
c
==
NULL
)
continue
;
if
(
c
==
NULL
||
!
(
c
->
flags
&
CLIENT_TRACKING
)
)
continue
;
sendTrackingMessage
(
c
,
hash
);
sendTrackingMessage
(
c
,
hash
);
}
}
raxStop
(
&
ri
);
raxStop
(
&
ri
);
...
...
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