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

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) ===
Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
From a9b7f0be96813205c06fa0d9218d18c489484548 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brau...@ubuntu.com>
Date: Tue, 21 Feb 2017 01:10:56 +0100
Subject: [PATCH] dir: delete image from database

Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
---
 lxd/storage_dir.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lxd/storage_dir.go b/lxd/storage_dir.go
index 96d3e54..453ebbe 100644
--- a/lxd/storage_dir.go
+++ b/lxd/storage_dir.go
@@ -635,6 +635,11 @@ func (s *storageDir) ImageCreate(fingerprint string) error 
{
 }
 
 func (s *storageDir) ImageDelete(fingerprint string) error {
+       err := s.deleteImageDbPoolVolume(fingerprint)
+       if err != nil {
+               return err
+       }
+
        return nil
 }
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to