adjust starting offset

This commit is contained in:
Chris Lu 2021-09-27 02:01:29 -07:00
parent 5956a8b05a
commit 1904448d4e

View file

@ -19,7 +19,9 @@ func (vs *VolumeServer) ReadAllNeedles(req *volume_server_pb.ReadAllNeedlesReque
stream: stream,
}
err = storage.ScanVolumeFileFrom(v.Version(), v.DataBackend, super_block.SuperBlockSize, scanner)
offset := int64(v.SuperBlock.BlockSize())
err = storage.ScanVolumeFileFrom(v.Version(), v.DataBackend, offset, scanner)
return err