From f2045c10d78384a7aea50f1d953c23f9d24b2c64 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 21 Sep 2022 14:21:11 +0300 Subject: [PATCH] [#1806] shard: Check each component mode when setting mode Signed-off-by: Evgenii Stratonikov --- pkg/local_object_storage/shard/mode.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/local_object_storage/shard/mode.go b/pkg/local_object_storage/shard/mode.go index 0d38a6c5..2cd07013 100644 --- a/pkg/local_object_storage/shard/mode.go +++ b/pkg/local_object_storage/shard/mode.go @@ -21,10 +21,6 @@ func (s *Shard) SetMode(m mode.Mode) error { s.m.Lock() defer s.m.Unlock() - if s.info.Mode == m { - return nil - } - components := []interface{ SetMode(mode.Mode) error }{ s.metaBase, s.blobStor, }