From 61ae8b0a2c93e3ddd942530c6695858e26e5623f Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 28 Jun 2022 14:43:30 +0300 Subject: [PATCH] shard: ignore errors in `UpdateID` Signed-off-by: Evgenii Stratonikov --- pkg/local_object_storage/shard/id.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/local_object_storage/shard/id.go b/pkg/local_object_storage/shard/id.go index a7fdd56a9..fdd006a01 100644 --- a/pkg/local_object_storage/shard/id.go +++ b/pkg/local_object_storage/shard/id.go @@ -27,7 +27,7 @@ func (s *Shard) ID() *ID { // UpdateID reads shard ID saved in the metabase and updates it if it is missing. func (s *Shard) UpdateID() (err error) { if err = s.metaBase.Open(); err != nil { - return err + return s.handleMetabaseFailure("open", err) } defer func() { cErr := s.metaBase.Close()