mirror of https://mirror.osredm.com/root/redis.git
Merge 7aad17dd0d
into 4d9b4d6e51
This commit is contained in:
commit
33830c715d
|
@ -3775,7 +3775,7 @@ NULL
|
|||
|
||||
char *opt = c->argv[2]->ptr;
|
||||
if (!strcasecmp(opt,"yes")) {
|
||||
if (c->flags & CLIENT_TRACKING_OPTIN) {
|
||||
if (c->flags & CLIENT_TRACKING_OPTIN || c->flags & CLIENT_TRACKING_BCAST) {
|
||||
c->flags |= CLIENT_TRACKING_CACHING;
|
||||
} else {
|
||||
addReplyError(c,"CLIENT CACHING YES is only valid when tracking is enabled in OPTIN mode.");
|
||||
|
|
Loading…
Reference in New Issue