mirror of
https://github.com/xcat2/confluent.git
synced 2026-01-11 18:42:29 +00:00
89ca5b412ba6eac59e40d445b82dc02a366ac308
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
xCAT confluent - replacement of conserver and eventually xcatd
Languages
Python
79.6%
Shell
16.3%
C
3.3%
Go
0.4%
Perl
0.3%