Commit 42d5d30
Fix inaccuracy with handover candidates at start of log
Summary:
Fix an issue where, when the log is very short, the computation of handover candidates can erroneously consider a
peer that has never responded to a heartbeat as eligible for handover.
In addition, disallow handing over leadership to a peer whose election weight is zero.
Reviewed By: jaher
Differential Revision: D80034548
fbshipit-source-id: 1f17d0f6676204f56d139ddce1318c4e8324d8fa1 parent 2f2954f commit 42d5d30
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1526 | 1526 | | |
1527 | 1527 | | |
1528 | 1528 | | |
1529 | | - | |
| 1529 | + | |
1530 | 1530 | | |
1531 | 1531 | | |
1532 | 1532 | | |
| |||
2875 | 2875 | | |
2876 | 2876 | | |
2877 | 2877 | | |
2878 | | - | |
2879 | | - | |
2880 | | - | |
2881 | | - | |
2882 | | - | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
2883 | 2885 | | |
2884 | 2886 | | |
2885 | 2887 | | |
| |||
0 commit comments