diff options
author | DarrenJiang13 <yjjiang1996@163.com> | 2022-08-10 16:58:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 11:58:54 +0300 |
commit | 44859a41ee63b52632f0726d7bf1e6ca1ce47f83 (patch) | |
tree | ce3d1f8242bbb88bc1f9873a88647374af693632 /src/tracking.c | |
parent | 91c3c742e7b85ae957bdb325a66132b6ed0097d3 (diff) | |
download | redis-44859a41ee63b52632f0726d7bf1e6ca1ce47f83.tar.gz |
fix the client type in trackingInvalidateKey() (#11052)
Fix bug with scripts ignoring client tracking NOLOOP and
send an invalidation message anyway.
Diffstat (limited to 'src/tracking.c')
-rw-r--r-- | src/tracking.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tracking.c b/src/tracking.c index 7dc025068..c4b534a62 100644 --- a/src/tracking.c +++ b/src/tracking.c @@ -388,7 +388,7 @@ void trackingInvalidateKey(client *c, robj *keyobj, int bcast) { /* If the client enabled the NOLOOP mode, don't send notifications * about keys changed by the client itself. */ if (target->flags & CLIENT_TRACKING_NOLOOP && - target == c) + target == server.current_client) { continue; } |