Sentinel test: foreach_instance_id implements 'break'.

This commit is contained in:
antirez 2014-03-18 15:06:52 +01:00
parent 2586ea7637
commit 58f104e2ee

View File

@ -275,6 +275,8 @@ proc foreach_instance_id {instances idvar code} {
error $result $::errorInfo $::errorCode
} elseif {$errcode == 4} {
continue
} elseif {$errcode == 3} {
break
} elseif {$errcode != 0} {
return -code $errcode $result
}