bareos: master 031808d1
|mvwieringen||mvwieringen||master||2016-04-25 15:40:18||master ac627464||Pending|
|Changeset||dird: Simplify concurrency checking.
- Use atomic functions that increment and decrement the concurrency
counters. These all use a single mutex but that is not really a
problem as we only want to serialize them so an increment and
decrement happening on the same resource are handled correctly.
- The exclusion of certain concurrency checks is now done in the new
atomic functions so the calling code path is cleaner and doesn't need
to test for all kind of conditions.
- Replace ASSERT calls with Jmsg M_FATAL calls which tell you which
counter went negative including the name of the read or write storage
its happening on.
|mod - src/dird/jobq.c||Diff File|