From 4aa019289b16a85e342b3b73b5421301d0179038 Mon Sep 17 00:00:00 2001 From: Ilja Neumann Date: Thu, 8 Oct 2020 20:58:38 +0200 Subject: [PATCH] Don't check if symlink is valid, as the target might have already been removed before index update --- accounts/pkg/indexer/index/disk/unique.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/accounts/pkg/indexer/index/disk/unique.go b/accounts/pkg/indexer/index/disk/unique.go index 6f1191efd..ed917cbd0 100644 --- a/accounts/pkg/indexer/index/disk/unique.go +++ b/accounts/pkg/indexer/index/disk/unique.go @@ -90,10 +90,6 @@ func (idx Unique) Add(id, v string) (string, error) { // Remove a value v from an index. func (idx Unique) Remove(id string, v string) (err error) { searchPath := path.Join(idx.indexRootDir, v) - if err = isValidSymlink(searchPath); err != nil { - return - } - return os.Remove(searchPath) }