Commit f59119aa authored by zhaozhao.zz's avatar zhaozhao.zz
Browse files

Client side caching: filter clients untracking

parent 6191ea90
...@@ -167,7 +167,7 @@ void trackingInvalidateKey(robj *keyobj) { ...@@ -167,7 +167,7 @@ void trackingInvalidateKey(robj *keyobj) {
uint64_t id; uint64_t id;
memcpy(&id,ri.key,ri.key_len); memcpy(&id,ri.key,ri.key_len);
client *c = lookupClientByID(id); client *c = lookupClientByID(id);
if (c == NULL) continue; if (c == NULL || !(c->flags & CLIENT_TRACKING)) continue;
sendTrackingMessage(c,hash); sendTrackingMessage(c,hash);
} }
raxStop(&ri); raxStop(&ri);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment