mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
parent
522760fac7
commit
de276b6a43
@ -5392,7 +5392,8 @@ clusterNode *getNodeByQuery(client *c, struct redisCommand *cmd, robj **argv, in
|
|||||||
* node is a slave and the request is about an hash slot our master
|
* node is a slave and the request is about an hash slot our master
|
||||||
* is serving, we can reply without redirection. */
|
* is serving, we can reply without redirection. */
|
||||||
if (c->flags & CLIENT_READONLY &&
|
if (c->flags & CLIENT_READONLY &&
|
||||||
cmd->flags & CMD_READONLY &&
|
(cmd->flags & CMD_READONLY || cmd->proc == evalCommand ||
|
||||||
|
cmd->proc == evalShaCommand) &&
|
||||||
nodeIsSlave(myself) &&
|
nodeIsSlave(myself) &&
|
||||||
myself->slaveof == n)
|
myself->slaveof == n)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user