bareos: master 43d103aa

Author Committer Branch Timestamp Parent
arogge arogge master 2024-07-24 16:16 master 8a296cb4 Pending
Changeset chunked_device: fix possible race-condition

when the io thread picked up a chunk, it was possible that
WaitChunksWritten() saw an empty queue and no inflight-chunks.
Even though this condition is caught by the volume-size check, the code
now checks that the queue is empty *and* has no reservations before
declaring everything is dequeued.
mod - core/src/stored/acquire.h Diff File
mod - core/src/stored/backends/chunked_device.cc Diff File
mod - core/src/stored/backends/ordered_cbuf.cc Diff File
mod - core/src/stored/backends/ordered_cbuf.h Diff File