Skip to content

Commit 8b16d97

Browse files
Merge pull request phpredis#616 from linfangrong/patch-1
Update redis_cluster.c
2 parents f9b8cc5 + 3662852 commit 8b16d97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

redis_cluster.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,7 @@ static void generic_zrange_cmd(INTERNAL_FUNCTION_PARAMETERS, char *kw,
16001600
zrange_cb fun)
16011601
{
16021602
redisCluster *c = GET_CONTEXT();
1603+
c->readonly = CLUSTER_IS_ATOMIC(c);
16031604
cluster_cb cb;
16041605
char *cmd; int cmd_len; short slot;
16051606
int withscores=0;

0 commit comments

Comments
 (0)