Database restore: close the pack stream of a blob read again before the next range
This commit is contained in:
@@ -850,6 +850,8 @@ final class Repository {
|
|||||||
} catch (\Exception) {
|
} catch (\Exception) {
|
||||||
// a read that went wrong on the way (see loadBlob()): this blob on its own
|
// a read that went wrong on the way (see loadBlob()): this blob on its own
|
||||||
$blob = $this->loadBlob($id);
|
$blob = $this->loadBlob($id);
|
||||||
|
// its pack stream is closed before the next range is read on the same connection
|
||||||
|
$this->packReader->close();
|
||||||
}
|
}
|
||||||
yield $blob;
|
yield $blob;
|
||||||
$done++;
|
$done++;
|
||||||
|
|||||||
Reference in New Issue
Block a user