mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-24 16:53:14 +08:00
Add generation field to volume_server_pb.VolumeEcShardReadRequest
This commit is contained in:
@@ -440,6 +440,7 @@ message VolumeEcShardReadRequest {
|
||||
int64 offset = 3;
|
||||
int64 size = 4;
|
||||
uint64 file_key = 5;
|
||||
uint32 generation = 6; // generation to read from, defaults to 0
|
||||
}
|
||||
message VolumeEcShardReadResponse {
|
||||
bytes data = 1;
|
||||
|
||||
@@ -3567,6 +3567,7 @@ type VolumeEcShardReadRequest struct {
|
||||
Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
|
||||
FileKey uint64 `protobuf:"varint,5,opt,name=file_key,json=fileKey,proto3" json:"file_key,omitempty"`
|
||||
Generation uint32 `protobuf:"varint,6,opt,name=generation,proto3" json:"generation,omitempty"` // generation to read from, defaults to 0
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -3636,6 +3637,13 @@ func (x *VolumeEcShardReadRequest) GetFileKey() uint64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *VolumeEcShardReadRequest) GetGeneration() uint32 {
|
||||
if x != nil {
|
||||
return x.Generation
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type VolumeEcShardReadResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
||||
@@ -6404,13 +6412,16 @@ const file_volume_server_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"generation\x18\x04 \x01(\rR\n" +
|
||||
"generation\"\x1f\n" +
|
||||
"\x1dVolumeEcShardsUnmountResponse\"\x99\x01\n" +
|
||||
"\x1dVolumeEcShardsUnmountResponse\"\xb9\x01\n" +
|
||||
"\x18VolumeEcShardReadRequest\x12\x1b\n" +
|
||||
"\tvolume_id\x18\x01 \x01(\rR\bvolumeId\x12\x19\n" +
|
||||
"\bshard_id\x18\x02 \x01(\rR\ashardId\x12\x16\n" +
|
||||
"\x06offset\x18\x03 \x01(\x03R\x06offset\x12\x12\n" +
|
||||
"\x04size\x18\x04 \x01(\x03R\x04size\x12\x19\n" +
|
||||
"\bfile_key\x18\x05 \x01(\x04R\afileKey\"N\n" +
|
||||
"\bfile_key\x18\x05 \x01(\x04R\afileKey\x12\x1e\n" +
|
||||
"\n" +
|
||||
"generation\x18\x06 \x01(\rR\n" +
|
||||
"generation\"N\n" +
|
||||
"\x19VolumeEcShardReadResponse\x12\x12\n" +
|
||||
"\x04data\x18\x01 \x01(\fR\x04data\x12\x1d\n" +
|
||||
"\n" +
|
||||
|
||||
Reference in New Issue
Block a user