aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2022-02-24 00:49:29 -0800
committerGitHub <noreply@github.com>2022-02-24 00:49:29 -0800
commit97a4b66df78a1328957c4e1bcf03170327898771 (patch)
treeced703c3234202f17a50cefb5cb0173429db57e5
parentabe7214c1f77c10c681dbb749f16138540045978 (diff)
parent3e7aa1caf5dcd8fc872dc2a81ad8f58ba20a4037 (diff)
downloadseaweedfs-97a4b66df78a1328957c4e1bcf03170327898771.tar.xz
seaweedfs-97a4b66df78a1328957c4e1bcf03170327898771.zip
Merge pull request #2704 from guo-sj/fix_bugs_in_return_value
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 be7f6891f..06de181b5 100644
--- a/weed/storage/volume_vacuum.go
+++ b/weed/storage/volume_vacuum.go
@@ -440,7 +440,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) {