From 3e7aa1caf5dcd8fc872dc2a81ad8f58ba20a4037 Mon Sep 17 00:00:00 2001 From: guosj <515878133@qq.com> Date: Thu, 24 Feb 2022 15:54:36 +0800 Subject: [PATCH] fix return value in storage/volume_vacuum.go:444 --- weed/storage/volume_vacuum.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/volume_vacuum.go b/weed/storage/volume_vacuum.go index 3bda260d9..be706c26e 100644 --- a/weed/storage/volume_vacuum.go +++ b/weed/storage/volume_vacuum.go @@ -441,7 +441,7 @@ func copyDataBasedOnIndexFile(srcDatName, srcIdxName, dstDatName, datIdxName str n := new(needle.Needle) err := n.ReadData(srcDatBackend, offset.ToActualOffset(), size, version) if err != nil { - return nil + return fmt.Errorf("cannot hydrate needle from file: %s", err) } if n.HasTtl() && now >= n.LastModified+uint64(sb.Ttl.Minutes()*60) {