mirror of https://github.com/go-redis/redis.git
Merge 09cd2d3120
into 930d904205
This commit is contained in:
commit
ab15a83038
3
error.go
3
error.go
|
@ -63,6 +63,9 @@ func shouldRetry(err error, retryTimeout bool) bool {
|
||||||
if strings.HasPrefix(s, "READONLY ") {
|
if strings.HasPrefix(s, "READONLY ") {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if strings.HasPrefix(s, "MASTERDOWN ") {
|
||||||
|
return true
|
||||||
|
}
|
||||||
if strings.HasPrefix(s, "CLUSTERDOWN ") {
|
if strings.HasPrefix(s, "CLUSTERDOWN ") {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue