From 6dde7937458164efee495c2e94e81dcdcda9b438 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Tue, 21 Sep 2021 18:00:55 +0200 Subject: [PATCH] do not delete blobs for blocked content --- store/dbbacked.go | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/store/dbbacked.go b/store/dbbacked.go index 013f06c..957ca2f 100644 --- a/store/dbbacked.go +++ b/store/dbbacked.go @@ -112,22 +112,22 @@ func (d *DBBackedStore) Block(hash string) error { return err } - has, err := d.db.HasBlob(hash, false) - if err != nil { - return err - } - - if has { - err = d.blobs.Delete(hash) - if err != nil { - return err - } - - err = d.db.Delete(hash) - if err != nil { - return err - } - } + //has, err := d.db.HasBlob(hash, false) + //if err != nil { + // return err + //} + // + //if has { + // err = d.blobs.Delete(hash) + // if err != nil { + // return err + // } + // + // err = d.db.Delete(hash) + // if err != nil { + // return err + // } + //} return d.markBlocked(hash) }