Commit b1d90a3
committed
afr: remove unreachable halo threshold override branch
In __afr_handle_ping_event(), the inner check
"(up_children - 1) < halo_min_replicas" is always false when the
outer guard "up_children > halo_min_replicas" holds, since
up_children > min implies up_children - 1 >= min. The "Overriding
halo threshold" log message is never emitted.
Remove the dead branch and collapse the if/else.
Fixes: #4683
Signed-off-by: Thales Antunes de Oliveira Barretto <thales.barretto.git@gmail.com>1 parent ae1d696 commit b1d90a3
1 file changed
Lines changed: 9 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5884 | 5884 | | |
5885 | 5885 | | |
5886 | 5886 | | |
5887 | | - | |
5888 | | - | |
5889 | | - | |
5890 | | - | |
5891 | | - | |
5892 | | - | |
5893 | | - | |
5894 | | - | |
5895 | | - | |
5896 | | - | |
5897 | | - | |
5898 | | - | |
5899 | | - | |
5900 | | - | |
5901 | | - | |
5902 | | - | |
| 5887 | + | |
| 5888 | + | |
| 5889 | + | |
| 5890 | + | |
| 5891 | + | |
| 5892 | + | |
| 5893 | + | |
| 5894 | + | |
| 5895 | + | |
5903 | 5896 | | |
5904 | 5897 | | |
5905 | 5898 | | |
| |||
0 commit comments