bareos: bareos-19.2 bbe9e7ad

Author Committer Branch Timestamp Parent
arogge arogge bareos-19.2 2021-04-28 16:34 bareos-19.2 db881b7f Pending
Changeset stored: reorder acquire device for migrate/copy

previously migrate/copy would acquire the device for reading before the
device for writing. This could lead to deadlock situation when the
volume that should be read was mounted in the device reserved for
writing.
By acquiring the device for writing first any volume in that device will
be unloaded unless it it the volume we are going to write to. This
should fix the deadlock described above.

(cherry picked from commit a019007b6e676359950e90dfdd21142fe6869ed6)
mod - core/src/stored/mac.cc Diff File