pass along volume server grpc port
fix https://github.com/seaweedfs/seaweedfs/issues/5617
This commit is contained in:
@@ -80,6 +80,7 @@ func (t *Topology) ToVolumeLocations() (volumeLocations []*master_pb.VolumeLocat
|
||||
Url: dn.Url(),
|
||||
PublicUrl: dn.PublicUrl,
|
||||
DataCenter: dn.GetDataCenterId(),
|
||||
GrpcPort: uint32(dn.GrpcPort),
|
||||
}
|
||||
for _, v := range dn.GetVolumes() {
|
||||
volumeLocation.NewVids = append(volumeLocation.NewVids, uint32(v.Id))
|
||||
|
||||
@@ -129,6 +129,7 @@ func (vg *VolumeGrowth) findAndGrow(grpcDialOption grpc.DialOption, topo *Topolo
|
||||
Url: server.Url(),
|
||||
PublicUrl: server.PublicUrl,
|
||||
DataCenter: server.GetDataCenterId(),
|
||||
GrpcPort: uint32(server.GrpcPort),
|
||||
NewVids: []uint32{uint32(vid)},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user