]> source.dussan.org Git - jgit.git/commit
DfsPackFile: Do not set local reverse index ref from cache callback 48/1192948/8
authorIvan Frade <ifrade@google.com>
Wed, 10 Apr 2024 17:52:44 +0000 (10:52 -0700)
committerIvan Frade <ifrade@google.com>
Tue, 16 Jul 2024 23:17:20 +0000 (16:17 -0700)
commit439512d7f82c503638e6b12689e751bb8debc015
tree0d54f8e5de0b8be6e36463d906dbe5cb69977b5f
parent01000f754e8d9726f245343d955fca89a2e183ba
DfsPackFile: Do not set local reverse index ref from cache callback

The DfsBlockCache loading callback sets the local reference to the
index in the DfsPackFile. This prevents abstracting the loading to
implement it over multiple backends.

Reorg the code so the loadReverseIndex do only the loading, the caller
sets it into DfsBlockCache and the external code sets the local
reference in DfsPackFile.

This is the same pattern we did with the PackIndex in the parent
commit.

Change-Id: I3a395b347965fa7b0e5a3398c4da311dc11c58a1
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java