Browse Source

Merge branch 'master' of https://github.com/chrislusf/seaweedfs

original_weed_mount
chrislu 3 years ago
parent
commit
419e355e9e
  1. 2
      weed/storage/volume_vacuum.go

2
weed/storage/volume_vacuum.go

@ -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) {

Loading…
Cancel
Save