[#1174] shard: Update metric mode_info on Init
Some checks failed
DCO action / DCO (pull_request) Successful in 5m28s
Build / Build Components (1.22) (pull_request) Successful in 9m52s
Build / Build Components (1.21) (pull_request) Successful in 9m59s
Vulncheck / Vulncheck (pull_request) Successful in 14m10s
Pre-commit hooks / Pre-commit (pull_request) Successful in 36m48s
Tests and linters / Tests (1.21) (pull_request) Failing after 19m7s
Tests and linters / gopls check (pull_request) Successful in 19m24s
Tests and linters / Staticcheck (pull_request) Successful in 22m15s
Tests and linters / Tests with -race (pull_request) Failing after 23m35s
Tests and linters / Tests (1.22) (pull_request) Failing after 26m10s
Tests and linters / Lint (pull_request) Successful in 29m12s

Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
Anton Nikiforov 2024-06-13 10:10:55 +03:00
parent 41e670c9ba
commit 2a85de6ddb

View file

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