Commit c1d2618
Only allow one follower to do bulk sync at a time (#1720)
### WHAT is this pull request doing?
Serializes follower `full_sync` so only one follower syncs at a time.
Two followers doing `full_sync` simultaneously crashes the leader with
`SIGSEGV` because both iterate `@files` and write to `@checksums` from
separate threads without synchronization.
Fixes #1708
### HOW can this pull request be tested?
TBA
---------
Co-authored-by: Carl Hörberg <[email protected]>1 parent e35be0b commit c1d2618
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
187 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
188 | 195 | | |
189 | 196 | | |
190 | 197 | | |
| |||
0 commit comments