Browse Source
Merge pull request #2704 from guo-sj/fix_bugs_in_return_value
fix return value in storage/volume_vacuum.go:444
original_weed_mount
Chris Lu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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) { |
|
|
|