mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-05-24 16:26:41 +00:00
`ensureImageCleanup()` can cause a panic when an image was deleted, but the journal still contained a reference. By opening the IOContext before using, an error may be returned instead of a panic when using a `nil` or freed IOContext. Signed-off-by: Niels de Vos <ndevos@ibm.com>