diff --git a/pkg/storage/fs/posix/testhelpers/helpers.go b/pkg/storage/fs/posix/testhelpers/helpers.go index b0f5bd8b28a..6cfff711bd5 100644 --- a/pkg/storage/fs/posix/testhelpers/helpers.go +++ b/pkg/storage/fs/posix/testhelpers/helpers.go @@ -174,7 +174,7 @@ func NewTestEnv(config map[string]interface{}) (*TestEnv, error) { ) bs := &treemocks.Blobstore{} - tree, err := tree.New(lu, bs, um, o, store.Create()) + tree, err := tree.New(lu, bs, um, o, nil, store.Create()) if err != nil { return nil, err } diff --git a/pkg/storage/fs/posix/tree/assimilation.go b/pkg/storage/fs/posix/tree/assimilation.go index 8b01bc021fb..24ccf8ecc05 100644 --- a/pkg/storage/fs/posix/tree/assimilation.go +++ b/pkg/storage/fs/posix/tree/assimilation.go @@ -134,8 +134,8 @@ func (t *Tree) HandleFileDelete(path string) error { Ref: &provider.Reference{ ResourceId: &provider.ResourceId{ StorageId: t.options.MountID, - SpaceId: string(parentSpaceID), - OpaqueId: string(parentID), + SpaceId: parentSpaceID, + OpaqueId: parentID, }, Path: filepath.Base(path), }, @@ -250,7 +250,7 @@ func (t *Tree) assimilate(item scanItem) error { if ok && previousPath != item.Path { if fi.IsDir() { // if it was moved and it is a directory we need to propagate the move - go t.WarmupIDCache(item.Path, false) + go func() { _ = t.WarmupIDCache(item.Path, false) }() } parentID, err := t.lookup.MetadataBackend().Get(context.Background(), item.Path, prefixes.ParentidAttr)