summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2020-05-21 09:26:12 +0200
committerGitHub <noreply@github.com>2020-05-21 09:26:12 +0200
commit1afb002d69c8766c09e0b924a09e254fdcbefba0 (patch)
tree47949fde2a75f0b1aa14d0053c2e1757cf288762
parentaf34245692214d778268d2c3afd795255530a7ec (diff)
parent4f3ff46a818b665b314d637f9aabf6ab602cf014 (diff)
downloadredis-1afb002d69c8766c09e0b924a09e254fdcbefba0.tar.gz
Merge pull request #7296 from soloestoy/tracking-broken-redir
Tracking: flag CLIENT_TRACKING_BROKEN_REDIR when redir broken
-rw-r--r--src/tracking.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tracking.c b/src/tracking.c
index cfde26fc9..eb4113131 100644
--- a/src/tracking.c
+++ b/src/tracking.c
@@ -206,6 +206,7 @@ void sendTrackingMessage(client *c, char *keyname, size_t keylen, int proto) {
if (c->client_tracking_redirection) {
client *redir = lookupClientByID(c->client_tracking_redirection);
if (!redir) {
+ c->flags |= CLIENT_TRACKING_BROKEN_REDIR;
/* We need to signal to the original connection that we
* are unable to send invalidation messages to the redirected
* connection, because the client no longer exist. */