Drop bootstrap optimizations, support/v0.37 #723

Merged
fyrchik merged 2 commits from dstepanov-yadro/frostfs-node:fix/node_bootstrap_support into support/v0.37 2024-09-04 19:51:03 +00:00
Showing only changes of commit eb5248621a - Show all commits

View file

@ -179,15 +179,8 @@ func addNewEpochNotificationHandlers(c *cfg) {
return
}
n := ev.(netmapEvent.NewEpoch).EpochNumber()
const reBootstrapInterval = 2
if (n-c.cfgNetmap.startEpoch)%reBootstrapInterval == 0 {
err := c.bootstrap()
if err != nil {
c.log.Warn(logs.FrostFSNodeCantSendRebootstrapTx, zap.Error(err))
}
if err := c.bootstrap(); err != nil {
c.log.Warn(logs.FrostFSNodeCantSendRebootstrapTx, zap.Error(err))
}
})