forked from TrueCloudLab/frostfs-node
[#469] cmd/neofs-node: Don't send UpdateState tx at shutdown by default
if `shutdown.offline.enabled` config option set to true, then send netmap.UpdateState(offline) tx at the shutdown. This config option is not set by default. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
a97e08cfd7
commit
f6f2e4d10f
2 changed files with 8 additions and 1 deletions
|
@ -85,7 +85,9 @@ func shutdown(c *cfg) {
|
|||
closer()
|
||||
}
|
||||
|
||||
goOffline(c)
|
||||
if c.cfgNetmap.goOfflineEnabled {
|
||||
goOffline(c)
|
||||
}
|
||||
|
||||
c.wg.Wait()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue