Review fixes: the database restore also reads a damaged blob once more; schedule conversion right on days the clocks change; the field follows a changed schedule time zone

This commit is contained in:
2026-10-22 19:45:49 +02:00
parent 67cc350b8c
commit cf4bd9db7f
4 changed files with 37 additions and 8 deletions
+7 -1
View File
@@ -845,7 +845,13 @@ final class Repository {
try {
foreach ($this->backend->getRanges($ranges) as $i => $data) {
foreach ($parts[$i] as [$id, $at, $length]) {
yield $this->decodeBlob($id, substr($data, $at, $length));
try {
$blob = $this->decodeBlob($id, substr($data, $at, $length));
} catch (\Exception) {
// a read that went wrong on the way (see loadBlob()): this blob on its own
$blob = $this->loadBlob($id);
}
yield $blob;
$done++;
}
}