Merge pull request #7296 from soloestoy/tracking-broken-redir

Tracking: flag CLIENT_TRACKING_BROKEN_REDIR when redir broken
This commit is contained in:
Salvatore Sanfilippo 2020-05-21 09:26:12 +02:00 committed by GitHub
commit 1afb002d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,6 +206,7 @@ void sendTrackingMessage(client *c, char *keyname, size_t keylen, int proto) {
if (c->client_tracking_redirection) { if (c->client_tracking_redirection) {
client *redir = lookupClientByID(c->client_tracking_redirection); client *redir = lookupClientByID(c->client_tracking_redirection);
if (!redir) { if (!redir) {
c->flags |= CLIENT_TRACKING_BROKEN_REDIR;
/* We need to signal to the original connection that we /* We need to signal to the original connection that we
* are unable to send invalidation messages to the redirected * are unable to send invalidation messages to the redirected
* connection, because the client no longer exist. */ * connection, because the client no longer exist. */