rbd: reserveSnap()
should cleanup its state in case of a failure
#4945
Labels
reserveSnap()
should cleanup its state in case of a failure
#4945
reserveSnap()
could set certain attributes ofrbdSnap
, but can fail later on. In case of a failure, attributes set inrbdSnap
may not be consistent. The function should cleanup its state in case of a failure (UndoReserveName()
), and only change rbdSnap attributes on success.ceph-csi/internal/rbd/rbd_journal.go
Lines 403 to 421 in d5849a4
Originally posted by @iPraveenParihar in #4502 (comment)
The text was updated successfully, but these errors were encountered: