[skip e2e] Add comment for global param (#14926)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
shaoyue 2022-01-06 13:51:21 +08:00 committed by GitHub
parent 00d06f2562
commit 8b70ae0507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,7 @@ func (p *GlobalParamTable) InitOnce() {
})
}
// Init initialize the global param table
func (p *GlobalParamTable) Init() {
p.BaseParams.Init()
@ -91,11 +92,13 @@ func (p *GlobalParamTable) Init() {
p.IndexNodeCfg.init(&p.BaseParams)
}
// SetLogConfig set log config with given role
func (p *GlobalParamTable) SetLogConfig(role string) {
p.BaseParams.RoleName = role
p.BaseParams.SetLogConfig()
}
// TODO: considering remove it: comment a large block of code is not a good practice, old code can be found with git
///////////////////////////////////////////////////////////////////////////////
// --- common ---
//type commonConfig struct {