forked from TrueCloudLab/frostfs-node
[#1940] Removing all trees by container ID if tree ID is empty in pilorama.Forest.TreeDrop
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
426fe97990
commit
9a20498f34
7 changed files with 65 additions and 9 deletions
|
@ -295,7 +295,7 @@ func (s *Service) syncLoop(ctx context.Context) {
|
|||
for cnr := range s.cnrMap {
|
||||
s.log.Debug("removing redundant trees...", zap.Stringer("cid", cnr))
|
||||
|
||||
err = s.DropTree(ctx, cnr, "") // TODO: #1940 drop all the trees here
|
||||
err = s.DropTree(ctx, cnr, "")
|
||||
if err != nil {
|
||||
s.log.Error("could not remove redundant tree",
|
||||
zap.Stringer("cid", cnr),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue