Skip to content

Commit

Permalink
add Warn for recovered files
Browse files Browse the repository at this point in the history
  • Loading branch information
walldiss committed Oct 21, 2024
1 parent c248141 commit fab6a4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ func (s *Store) validateAndRecoverODSQ4(
if err == nil {
return nil
}
log.Warnf("ODSQ4 file with height %d is corrupted, recovering", height)
err = s.removeODSQ4(height, roots.Hash())
if err != nil {
return fmt.Errorf("removing corrupted ODSQ4 file: %w", err)
Expand Down Expand Up @@ -281,6 +282,7 @@ func (s *Store) validateAndRecoverODS(
if err == nil {
return nil
}
log.Warnf("ODS file with height %d is corrupted, recovering", height)
err = s.removeODS(height, roots.Hash())
if err != nil {
return fmt.Errorf("removing corrupted ODS file: %w", err)
Expand Down

0 comments on commit fab6a4b

Please sign in to comment.