forked from TrueCloudLab/frostfs-node
[#1856] node: Fix config rereading
Config was reread from the file only once in two SIGHUPs. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
b2aa9947c2
commit
1360273fec
1 changed files with 2 additions and 5 deletions
|
@ -164,13 +164,10 @@ func (a *applicationConfiguration) readConfig(c *config.Config) error {
|
||||||
|
|
||||||
// clear if it is rereading
|
// clear if it is rereading
|
||||||
*a = applicationConfiguration{}
|
*a = applicationConfiguration{}
|
||||||
} else {
|
|
||||||
// update the status.
|
|
||||||
// initial configuration validation is expected to be
|
|
||||||
// performed on the higher level
|
|
||||||
a._read = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a._read = true
|
||||||
|
|
||||||
a.EngineCfg.errorThreshold = engineconfig.ShardErrorThreshold(c)
|
a.EngineCfg.errorThreshold = engineconfig.ShardErrorThreshold(c)
|
||||||
a.EngineCfg.shardPoolSize = engineconfig.ShardPoolSize(c)
|
a.EngineCfg.shardPoolSize = engineconfig.ShardPoolSize(c)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue