forked from TrueCloudLab/frostfs-node
shard: ignore errors in UpdateID
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
b193352d1e
commit
61ae8b0a2c
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue