From 0c47ce5cb64b13be6d2f0412800c1b3251507f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Sat, 1 Jul 2023 01:05:45 +0200 Subject: [PATCH] actually, we are the ones creating empty files on purpose :( MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- pkg/storage/utils/decomposedfs/metadata/messagepack_backend.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/storage/utils/decomposedfs/metadata/messagepack_backend.go b/pkg/storage/utils/decomposedfs/metadata/messagepack_backend.go index 5e0d05c500a..b24ecc36254 100644 --- a/pkg/storage/utils/decomposedfs/metadata/messagepack_backend.go +++ b/pkg/storage/utils/decomposedfs/metadata/messagepack_backend.go @@ -20,7 +20,6 @@ package metadata import ( "context" - "errors" "io" "io/fs" "os" @@ -174,7 +173,7 @@ func (b MessagePackBackend) saveAttributes(ctx context.Context, path string, set } case len(msgBytes) == 0: // ugh. an empty file? bail out - return errors.New("encountered empty metadata file") + // return errors.New("encountered empty metadata file") // actually this is normal when we write new files, because initNewNode creates an empty file for the mtime default: // only unmarshal if we read data err = msgpack.Unmarshal(msgBytes, &attribs)