mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix missing needle header read
This commit is contained in:
parent
c71fddee2b
commit
3c865ee39b
|
@ -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…
Reference in a new issue