From 4f3ff46a818b665b314d637f9aabf6ab602cf014 Mon Sep 17 00:00:00 2001 From: "zhaozhao.zz" Date: Thu, 21 May 2020 13:57:29 +0800 Subject: [PATCH] Tracking: flag CLIENT_TRACKING_BROKEN_REDIR when redir broken --- src/tracking.c | 1 + 1 file changed, 1 insertion(+) 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. */