master able to list all master clients by type

This commit is contained in:
Chris Lu
2020-03-01 22:13:47 -08:00
parent 0ca68a2a6d
commit 6a8484b4ae
14 changed files with 353 additions and 206 deletions

View File

@@ -44,7 +44,7 @@ type FilerOption struct {
DataCenter string
DefaultLevelDbDir string
DisableHttp bool
Port int
Port uint32
recursiveDelete bool
}
@@ -66,7 +66,7 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
glog.Fatal("master list is required!")
}
fs.filer = filer2.NewFiler(option.Masters, fs.grpcDialOption)
fs.filer = filer2.NewFiler(option.Masters, fs.grpcDialOption, option.Port+10000)
go fs.filer.KeepConnectedToMaster()