mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Merge pull request #2148 from signalfx/cluster-pipeline-err
fix: additional node failures in clustered pipelined reads
This commit is contained in:
@ -1210,7 +1210,7 @@ func (c *ClusterClient) pipelineReadCmds(
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.opt.ReadOnly && isLoadingError(err) {
|
if c.opt.ReadOnly && (isLoadingError(err) || !isRedisError(err)) {
|
||||||
node.MarkAsFailing()
|
node.MarkAsFailing()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user