mirror of
https://github.com/fluencelabs/redis
synced 2025-04-03 00:01:04 +00:00
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]
|
set errcode [catch {uplevel 1 $code} result]
|
||||||
if {$errcode == 1} {
|
if {$errcode == 1} {
|
||||||
error $result $::errorInfo $::errorCode
|
error $result $::errorInfo $::errorCode
|
||||||
|
} elseif {$errcode == 4} {
|
||||||
|
continue
|
||||||
} elseif {$errcode != 0} {
|
} elseif {$errcode != 0} {
|
||||||
return -code $errcode $result
|
return -code $errcode $result
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user