[lxc-devel] [lxd/master] Update backup file when deleting a snapshot
feileacan on Github
lxc-bot at linuxcontainers.org
Wed Dec 9 11:12:25 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 399 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20201209/57fc2b84/attachment.bin>
-------------- next part --------------
From 89f27374793bfeb1d23faee0a36526721af57958 Mon Sep 17 00:00:00 2001
From: feileacan <54381366+feileacan at users.noreply.github.com>
Date: Wed, 9 Dec 2020 22:08:41 +1100
Subject: [PATCH] Update backup file when deleting a snapshot
Fixes https://github.com/lxc/lxd/issues/8227
---
lxd/instance/drivers/driver_lxc.go | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lxd/instance/drivers/driver_lxc.go b/lxd/instance/drivers/driver_lxc.go
index 9b1f3dd757..b24abcf9aa 100644
--- a/lxd/instance/drivers/driver_lxc.go
+++ b/lxd/instance/drivers/driver_lxc.go
@@ -3397,6 +3397,10 @@ func (d *lxc) Delete(force bool) error {
if err != nil {
return err
}
+ err = c.UpdateBackupFile()
+ if err != nil {
+ return err
+ }
}
} else {
// Remove all snapshots by initialising each snapshot as an Instance and
More information about the lxc-devel
mailing list