Browse Source

fix missing needle header read

pull/1091/head
Chris Lu 5 years ago
parent
commit
3c865ee39b
  1. 2
      weed/storage/volume_read_write.go

2
weed/storage/volume_read_write.go

@ -228,7 +228,7 @@ func ScanVolumeFileFrom(version needle.Version, dataFile *os.File, offset int64,
}
offset += NeedleHeaderSize + rest
glog.V(4).Infof("==> new entry offset %d", offset)
if n, _, rest, err = needle.ReadNeedleHeader(dataFile, version, offset); err != nil {
if n, nh, rest, err = needle.ReadNeedleHeader(dataFile, version, offset); err != nil {
if err == io.EOF {
return nil
}

Loading…
Cancel
Save