Merge pull request #2704 from guo-sj/fix_bugs_in_return_value

fix return value in storage/volume_vacuum.go:444
This commit is contained in:
Chris Lu 2022-02-24 00:49:29 -08:00 committed by GitHub
commit 97a4b66df7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -440,7 +440,7 @@ func copyDataBasedOnIndexFile(srcDatName, srcIdxName, dstDatName, datIdxName str
n := new(needle.Needle) n := new(needle.Needle)
err := n.ReadData(srcDatBackend, offset.ToActualOffset(), size, version) err := n.ReadData(srcDatBackend, offset.ToActualOffset(), size, version)
if err != nil { 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) { if n.HasTtl() && now >= n.LastModified+uint64(sb.Ttl.Minutes()*60) {