diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-06-23 01:57:35 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-06-23 01:57:35 -0700 |
| commit | 8da5d5b094f898c0b9c75cbccb63e0b0a125802e (patch) | |
| tree | 52cca43703a0c9797c53370837b40f738b3528d2 /weed/server | |
| parent | d1cd8f8c5bedf2c5055579e6fb9bfaded32777c0 (diff) | |
| download | seaweedfs-8da5d5b094f898c0b9c75cbccb63e0b0a125802e.tar.xz seaweedfs-8da5d5b094f898c0b9c75cbccb63e0b0a125802e.zip | |
filer.copy: use filer settings, avoid unnecessary command line options
fix https://github.com/chrislusf/seaweedfs/issues/968
Diffstat (limited to 'weed/server')
| -rw-r--r-- | weed/server/filer_grpc_server.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/weed/server/filer_grpc_server.go b/weed/server/filer_grpc_server.go index f8bb9cf07..8eea2441e 100644 --- a/weed/server/filer_grpc_server.go +++ b/weed/server/filer_grpc_server.go @@ -266,3 +266,13 @@ func (fs *FilerServer) Statistics(ctx context.Context, req *filer_pb.StatisticsR FileCount: output.FileCount, }, nil } + +func (fs *FilerServer) GetFilerConfiguration(ctx context.Context, req *filer_pb.GetFilerConfigurationRequest) (resp *filer_pb.GetFilerConfigurationResponse, err error) { + + return &filer_pb.GetFilerConfigurationResponse{ + Masters: fs.option.Masters, + Collection: fs.option.Collection, + Replication: fs.option.DefaultReplication, + MaxMb: uint32(fs.option.MaxMB), + }, nil +} |
