From 3ac329831358fc1958f46008ef2c0d2a74af8d1e Mon Sep 17 00:00:00 2001 From: Dillard Blom Date: Thu, 22 Oct 2026 20:30:18 +0200 Subject: [PATCH] Database restore: close the pack stream of a blob read again before the next range --- lib/Repository/Repository.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Repository/Repository.php b/lib/Repository/Repository.php index bfd01e9..56a837f 100644 --- a/lib/Repository/Repository.php +++ b/lib/Repository/Repository.php @@ -850,6 +850,8 @@ final class Repository { } catch (\Exception) { // a read that went wrong on the way (see loadBlob()): this blob on its own $blob = $this->loadBlob($id); + // its pack stream is closed before the next range is read on the same connection + $this->packReader->close(); } yield $blob; $done++;