mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-17 21:23:18 +00:00
Jarrod Johnon
89ca5b412b
Fix race condition on configuration writeback
If the sync thread had moved beyond the point of checking _writepending, but had not quite managed to trigger isAlive() to be false, the sync cfg to file would transition to never work. Address this by adding one lock and one boolean. Inside the lock, the two booleans are manipulated to atomically mark the end of thread sync activity linked with check for pending data to write.
Description
Languages
Python
80.4%
Shell
15.6%
C
3.6%
Perl
0.3%