Browse Source

adjust starting offset

pull/2348/head
Chris Lu 3 years ago
parent
commit
1904448d4e
  1. 4
      weed/server/volume_grpc_read_all.go

4
weed/server/volume_grpc_read_all.go

@ -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

Loading…
Cancel
Save