Browse Source

stop early if compaction fails

fix https://github.com/chrislusf/seaweedfs/issues/1015
pull/1020/head
Chris Lu 6 years ago
parent
commit
c33f423955
  1. 1
      weed/storage/volume_read_write.go

1
weed/storage/volume_read_write.go

@ -224,6 +224,7 @@ func ScanVolumeFileFrom(version needle.Version, dataFile *os.File, offset int64,
}
if err != nil {
glog.V(0).Infof("visit needle error: %v", err)
return fmt.Errorf("visit needle error: %v", err)
}
offset += NeedleHeaderSize + rest
glog.V(4).Infof("==> new entry offset %d", offset)

Loading…
Cancel
Save