]> source.dussan.org Git - jgit.git/commit
DfsStreamKey: Replace ForReverseIndex to separate metrics. 89/196889/3
authorAnna Papitto <annapapitto@google.com>
Fri, 11 Nov 2022 18:44:37 +0000 (10:44 -0800)
committerIvan Frade <ifrade@google.com>
Thu, 17 Nov 2022 17:38:36 +0000 (12:38 -0500)
commitaccacc27a1b282c55e5ee92e69566a9edd1a4bb9
tree58cca0de14fcf09ab0597b93e97b96a5737aeffc
parent5c033a98f62e8959aaf6c4d2c8ba87c3d890a5c4
DfsStreamKey: Replace ForReverseIndex to separate metrics.

Keys used for identifying reverse indexes in the DfsBlockCache use a
custom subclass ForReverseIndex because there was no PackExt for them.
This conflates BlockCacheMetrics for reverse indexes with those for
packs, since the key falls back onto 0 when there is no extension.

Replace the custom ForReverseIndex with a DfsStreamKey usage to bring
keys for the new REVERSE_INDEX extension in line with INDEX and BITMAP
and separate reverse index and pack BlockCacheMetrics.

Change-Id: I305e2c16d2a8cb2a824855ea92e0c9a9b188fce5
Signed-off-by: Anna Papitto <annapapitto@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsStreamKey.java