The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/8228

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Fixes https://github.com/lxc/lxd/issues/8227

Signed-off-by: David Munro <davidmu...@google.com>
From 89f27374793bfeb1d23faee0a36526721af57958 Mon Sep 17 00:00:00 2001
From: feileacan <54381366+feilea...@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
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to