Skip to content

Commit

Permalink
Bump space TreeMTime when changing the metadata
Browse files Browse the repository at this point in the history
This enables the search to pick up the changes properly.

Part of the fix for owncloud/ocis#6289
  • Loading branch information
aduffeck authored and 2403905 committed May 19, 2023
1 parent f5eef6b commit f0fbee2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storage/utils/decomposedfs/spaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f0fbee2

Please sign in to comment.