check: fix error reporting on download retry

This commit is contained in:
Michael Eischer
2025-09-07 17:13:19 +02:00
parent 398862c5c8
commit a5e814bd8d
3 changed files with 49 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
Bugfix: Improve handling of download retries in `check` command
In very rare cases, the `check` command could unnecessarily report a
repository damage if the backend returns incomplete, corrupted data on
the first download try which is resolved by a download retry.
Now, only the check result of the last download attempt is reported as
intended.
https://github.com/restic/restic/issues/5467
https://github.com/restic/restic/pull/5495