-
Notifications
You must be signed in to change notification settings - Fork 933
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lxd: Add reverter to storagePoolVolumeUpdateUsers
storagePoolVolumeUpdateUsers is used in two places, one of which does not currently use a reverter. If that update fails, the instances/profiles could be left in an inconsistent state. This pushes the reverter inside the function, so that it is safe to call without needing a reverter. My hunch is that this is also slightly less slow in case of failure. Signed-off-by: Wesley Hershberger <[email protected]>
- Loading branch information
1 parent
48b02f2
commit b3f47fc
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters