Commit 4be4f67
committed
object_db: use ReadCloser for uncompressed objects
When we open a new object using the object database, ensure that we use
a ReadCloser for the uncompressed object. This ensures that we close
the file we've opened when reading loose objects so we don't run out of
file descriptors.
Note that we do use this code path for reading loose objects in some
cases because we hand it a ReadCloser which automatically decompresses
the object.1 parent 1e97572 commit 4be4f67
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| |||
0 commit comments