mirror of https://github.com/redis/redis.git
Sentinel test: foreach_instance_id now supports 'continue'.
This commit is contained in:
parent
69cc3b692f
commit
db9e718c8a
|
|
@ -212,6 +212,8 @@ proc foreach_instance_id {instances idvar code} {
|
|||
set errcode [catch {uplevel 1 $code} result]
|
||||
if {$errcode == 1} {
|
||||
error $result $::errorInfo $::errorCode
|
||||
} elseif {$errcode == 4} {
|
||||
continue
|
||||
} elseif {$errcode != 0} {
|
||||
return -code $errcode $result
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue