shard: ignore errors in UpdateID

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-06-28 14:43:30 +03:00
parent b193352d1e
commit 61ae8b0a2c

View file

@ -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()