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
dad0e916
Commit
dad0e916
authored
Jul 10, 2019
by
antirez
Browse files
Client side caching: filter clients no longer there.
parent
c7aaf8db
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tracking.c
View file @
dad0e916
...
@@ -133,6 +133,7 @@ void trackingInvalidateKey(robj *keyobj) {
...
@@ -133,6 +133,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
;
int
using_redirection
=
0
;
int
using_redirection
=
0
;
if
(
c
->
client_tracking_redirection
)
{
if
(
c
->
client_tracking_redirection
)
{
client
*
redir
=
lookupClientByID
(
c
->
client_tracking_redirection
);
client
*
redir
=
lookupClientByID
(
c
->
client_tracking_redirection
);
...
...
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