Skip to content

Commit

Permalink
Merge pull request redis#7296 from soloestoy/tracking-broken-redir
Browse files Browse the repository at this point in the history
Tracking: flag CLIENT_TRACKING_BROKEN_REDIR when redir broken
  • Loading branch information
antirez authored May 21, 2020
2 parents af34245 + 4f3ff46 commit 1afb002
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tracking.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 1afb002

Please sign in to comment.