mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 18:42:13 +00:00
add check for not providing both optin optout flag
This commit is contained in:
parent
aca7f36b57
commit
1ef44f8243
@ -2314,6 +2314,14 @@ NULL
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((options & CLIENT_TRACKING_OPTIN) && (options & CLIENT_TRACKING_OPTOUT))
|
||||||
|
{
|
||||||
|
addReplyError(c,
|
||||||
|
"You can't specify both OPTIN mode and OPTOUT mode");
|
||||||
|
zfree(prefix);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
enableTracking(c,redir,options,prefix,numprefix);
|
enableTracking(c,redir,options,prefix,numprefix);
|
||||||
} else if (!strcasecmp(c->argv[2]->ptr,"off")) {
|
} else if (!strcasecmp(c->argv[2]->ptr,"off")) {
|
||||||
disableTracking(c);
|
disableTracking(c);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user