From f0fbee27d1a867e090673dc83ab811000dcbd5f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Duffeck?= Date: Sun, 14 May 2023 18:09:25 +0200 Subject: [PATCH] Bump space TreeMTime when changing the metadata This enables the search to pick up the changes properly. Part of the fix for https://github.com/owncloud/ocis/issues/6289 --- pkg/storage/utils/decomposedfs/spaces.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/storage/utils/decomposedfs/spaces.go b/pkg/storage/utils/decomposedfs/spaces.go index 12f264aeb0b..00926d7d6f9 100644 --- a/pkg/storage/utils/decomposedfs/spaces.go +++ b/pkg/storage/utils/decomposedfs/spaces.go @@ -604,6 +604,7 @@ func (fs *Decomposedfs) UpdateStorageSpace(ctx context.Context, req *provider.Up }, nil } } + metadata[prefixes.TreeMTimeAttr] = []byte(time.Now().UTC().Format(time.RFC3339Nano)) err = spaceNode.SetXattrs(metadata, true) if err != nil {