bareos: master 5ce7f477

Author Committer Branch Timestamp Parent
Sebastian Sura Bareos Bot master 2023-11-22 08:44 master 18d9ce09 Pending
Changeset reload: fix race condition

is_reloading can written to/ read from multiple different threads at
the same time. As such we cannot just do a test-then-set
approach (even if each of those operations were atomic). Instead we
need to atomically test _and_ set the flag to actually prevent two
different threads from entering.
mod - core/src/dird/reload.cc Diff File