From 0990a9b0bd8592e8e49f750779197b9c77197095 Mon Sep 17 00:00:00 2001 From: Ekaterina Lebedeva Date: Thu, 28 Mar 2024 16:12:33 +0300 Subject: [PATCH] [#1055] blobstor: fix mode metric It used to always show CLOSED after setting shard mode to read-only regardless of actual mode. Now metric represents actual blobstor mode of operations. Signed-off-by: Ekaterina Lebedeva --- pkg/local_object_storage/blobstor/mode.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/local_object_storage/blobstor/mode.go b/pkg/local_object_storage/blobstor/mode.go index dc7dad68..a579a6f9 100644 --- a/pkg/local_object_storage/blobstor/mode.go +++ b/pkg/local_object_storage/blobstor/mode.go @@ -31,5 +31,6 @@ func (b *BlobStor) SetMode(m mode.Mode) error { } b.mode = m + b.metrics.SetMode(m.ReadOnly()) return nil }