From 6f9267ebdfa3aeeec2cebdf26399f67ead099298 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Sun, 28 Apr 2024 12:21:57 +0500 Subject: [PATCH] fix: skip file size checking for volume with TTL (#5541) fix: skip file size checking for volume with tll https://github.com/seaweedfs/seaweedfs/issues/5508 --- weed/storage/volume_checking.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/storage/volume_checking.go b/weed/storage/volume_checking.go index 4d51e081f..0c5f154e8 100644 --- a/weed/storage/volume_checking.go +++ b/weed/storage/volume_checking.go @@ -109,6 +109,9 @@ func verifyNeedleIntegrity(datFile backend.BackendStorageFile, v needle.Version, return 0, fmt.Errorf("verifyNeedleIntegrity check %s entry offset %d size %d: %v", datFile.Name(), offset, size, err) } n.AppendAtNs = util.BytesToUint64(bytes) + if n.HasTtl() { + return n.AppendAtNs, nil + } fileTailOffset := offset + needle.GetActualSize(size, v) fileSize, _, err := datFile.GetStat() if err != nil {