]> source.dussan.org Git - jgit.git/commit
DfsReader: Fallback to regular size read if size index throws 00/1201400/6
authorIvan Frade <ifrade@google.com>
Tue, 17 Sep 2024 20:50:59 +0000 (13:50 -0700)
committerIvan Frade <ifrade@google.com>
Thu, 19 Sep 2024 19:53:47 +0000 (12:53 -0700)
commit1af7aa891910131a6a6012ef156510609417bd5e
tree81033ab2705073f4766e2050bd4f1d4551ba48e1
parentc3c78ddd9243aca1d03575c37672b767daaa503c
DfsReader: Fallback to regular size read if size index throws

The reader can get IOException when reading the object size index, but
that index is an optimization, the size should still be available in
the pack.

Use the regular #getObjectSize() as a fallback when we get an
IOException from the object size index.

Change-Id: Ic5ec2cfc7c698aa94c6cfd5960cbab6c129f595a
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReader.java