summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorIvan Frade <ifrade@google.com>2023-09-08 08:35:47 -0700
committerIvan Frade <ifrade@google.com>2023-09-08 11:03:38 -0700
commit7baa5a157b467938e90df76f1a69c00f0494cb58 (patch)
tree38689b1583cca88ef106eaac97529d69248e94fb /lib
parent30427485ddfd6fa4b949d42c832d19594ed5885a (diff)
downloadjgit-7baa5a157b467938e90df76f1a69c00f0494cb58.tar.gz
jgit-7baa5a157b467938e90df76f1a69c00f0494cb58.zip
DfsPackFile: Record index loads only in one place
Each index can be set in the reader from two locations: the dfs cache callback or the code afterwards. The pack is emitting the load event in both cases, when the reference is set. This is brittle (right now it is missing events for BITMAP_INDEX and COMMIT_GRAPH). Emit the index loaded event only once, after going through the cache code. The fact that the reference was set in the callback or the main code is irrelevant. Also, the reader is per-thread, so there shouldn't be any concurrency involved triggering double counts. Change-Id: I7f3d078a53741ecc1e81b96353ed8faa8fef3a49
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions