From 3c865ee39b45f27b4002059171a6cd048601d07d Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 22 Oct 2019 00:57:47 -0700 Subject: [PATCH] fix missing needle header read --- weed/storage/volume_read_write.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/volume_read_write.go b/weed/storage/volume_read_write.go index 7a216b77e..5f18dc042 100644 --- a/weed/storage/volume_read_write.go +++ b/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 }