mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 18:07:23 +08:00
add grpc ec shard read
This commit is contained in:
@@ -105,3 +105,9 @@ func (shard *EcVolumeShard) findNeedleFromEcx(needleId types.NeedleId) (offset t
|
||||
err = fmt.Errorf("needle id %d not found", needleId)
|
||||
return
|
||||
}
|
||||
|
||||
func (shard *EcVolumeShard) ReadAt(buf []byte, offset int64) (int, error) {
|
||||
|
||||
return shard.ecdFile.ReadAt(buf, offset)
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user