From 6067e644d6ab3410e3e3d056c080b85943c34592 Mon Sep 17 00:00:00 2001 From: Anton Nikiforov Date: Thu, 13 Jun 2024 10:10:55 +0300 Subject: [PATCH] [#1175] shard: Update metric `mode_info` on `Init` Signed-off-by: Anton Nikiforov --- pkg/local_object_storage/shard/shard.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/local_object_storage/shard/shard.go b/pkg/local_object_storage/shard/shard.go index 8368f6db4..266f360a6 100644 --- a/pkg/local_object_storage/shard/shard.go +++ b/pkg/local_object_storage/shard/shard.go @@ -469,6 +469,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