aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguosj <515878133@qq.com>2022-02-24 15:54:36 +0800
committerguosj <515878133@qq.com>2022-02-24 15:54:36 +0800
commit3e7aa1caf5dcd8fc872dc2a81ad8f58ba20a4037 (patch)
tree561ff89cf90f12c7c5adbc09d6fbe58b0ade0e81
parent26f3ab8d4b906edab175baab56db43f4eb8c5e9a (diff)
downloadseaweedfs-3e7aa1caf5dcd8fc872dc2a81ad8f58ba20a4037.tar.xz
seaweedfs-3e7aa1caf5dcd8fc872dc2a81ad8f58ba20a4037.zip
fix return value in storage/volume_vacuum.go:444
-rw-r--r--weed/storage/volume_vacuum.go2
1 files changed, 1 insertions, 1 deletions
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) {