diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-08-29 21:02:10 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-08-29 21:02:10 -0700 |
| commit | 05f32376eb8e215fe69a5942ef741d406b6e93eb (patch) | |
| tree | 258936ffd8077482394e2c4bf20600d2787727f5 /weed/server | |
| parent | 268de45aa521635a377950d7752d8f13316e4cad (diff) | |
| download | seaweedfs-05f32376eb8e215fe69a5942ef741d406b6e93eb.tar.xz seaweedfs-05f32376eb8e215fe69a5942ef741d406b6e93eb.zip | |
add cluster id in filer configuration response
Diffstat (limited to 'weed/server')
| -rw-r--r-- | weed/server/filer_grpc_server.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/server/filer_grpc_server.go b/weed/server/filer_grpc_server.go index 08b01dd09..e025e73dc 100644 --- a/weed/server/filer_grpc_server.go +++ b/weed/server/filer_grpc_server.go @@ -384,6 +384,8 @@ func (fs *FilerServer) Statistics(ctx context.Context, req *filer_pb.StatisticsR func (fs *FilerServer) GetFilerConfiguration(ctx context.Context, req *filer_pb.GetFilerConfigurationRequest) (resp *filer_pb.GetFilerConfigurationResponse, err error) { + clusterId, _ := fs.filer.Store.KvGet(context.Background(), []byte("clusterId")) + t := &filer_pb.GetFilerConfigurationResponse{ Masters: fs.option.Masters, Collection: fs.option.Collection, @@ -395,6 +397,7 @@ func (fs *FilerServer) GetFilerConfiguration(ctx context.Context, req *filer_pb. MetricsAddress: fs.metricsAddress, MetricsIntervalSec: int32(fs.metricsIntervalSec), Version: util.Version(), + ClusterId: string(clusterId), } glog.V(4).Infof("GetFilerConfiguration: %v", t) |
