[SUPPORT] shard: Update metric mode_info on Init #1175

Merged
fyrchik merged 1 commit from acid-ant/frostfs-node:bugfix/upd-mode-metric-init-support into support/v0.38 2024-06-14 06:22:08 +00:00
Showing only changes of commit 6067e644d6 - Show all commits

View file

@ -469,6 +469,7 @@ func (s *Shard) updateMetrics(ctx context.Context) {
s.setContainerObjectsCount(contID.EncodeToString(), logical, count.Logic) s.setContainerObjectsCount(contID.EncodeToString(), logical, count.Logic)
s.setContainerObjectsCount(contID.EncodeToString(), user, count.User) s.setContainerObjectsCount(contID.EncodeToString(), user, count.User)
} }
s.cfg.metricsWriter.SetMode(s.info.Mode)
} }
// incObjectCounter increment both physical and logical object // incObjectCounter increment both physical and logical object