diff --git a/pkg/storage/utils/decomposedfs/revisions.go b/pkg/storage/utils/decomposedfs/revisions.go index 0cb3782308..c079c3bddb 100644 --- a/pkg/storage/utils/decomposedfs/revisions.go +++ b/pkg/storage/utils/decomposedfs/revisions.go @@ -272,11 +272,15 @@ func (fs *Decomposedfs) RestoreRevision(ctx context.Context, ref *provider.Refer return errtypes.InternalError("failed to copy blob xattrs to old revision to node: " + err.Error()) } // always set the node mtime to the current time - fs.lu.MetadataBackend().SetMultiple(ctx, nodePath, + err = fs.lu.MetadataBackend().SetMultiple(ctx, nodePath, map[string][]byte{ prefixes.MTimeAttr: []byte(time.Now().UTC().Format(time.RFC3339Nano)), }, false) + if err != nil { + return errtypes.InternalError("failed to set mtime attribute on node: " + err.Error()) + } + revisionSize, err := fs.lu.MetadataBackend().GetInt64(ctx, restoredRevisionPath, prefixes.BlobsizeAttr) if err != nil { return errtypes.InternalError("failed to read blob size xattr from old revision")