aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/topology_info.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-05-29 10:41:33 -0700
committerchrislu <chris.lu@gmail.com>2024-05-29 10:41:33 -0700
commit3e7a92061b726ef68dba9267ca02ab179381ea0e (patch)
treee4b3370a4fa644498e44a4d40446d42a66c93418 /weed/topology/topology_info.go
parentedeea739ed069703732ccc13fbca9a43c44120d9 (diff)
downloadseaweedfs-3e7a92061b726ef68dba9267ca02ab179381ea0e.tar.xz
seaweedfs-3e7a92061b726ef68dba9267ca02ab179381ea0e.zip
pass along volume server grpc port
fix https://github.com/seaweedfs/seaweedfs/issues/5617
Diffstat (limited to 'weed/topology/topology_info.go')
-rw-r--r--weed/topology/topology_info.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/topology/topology_info.go b/weed/topology/topology_info.go
index afbeb4894..120ae0d42 100644
--- a/weed/topology/topology_info.go
+++ b/weed/topology/topology_info.go
@@ -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))