mirror of https://github.com/go-redis/redis.git
Merge 09cd2d3120
into e63669e170
This commit is contained in:
commit
3e6ac2a4b6
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