aboutsummaryrefslogtreecommitdiffstats
path: root/midx.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-09-23 12:17:04 +0200
committerJunio C Hamano <gitster@pobox.com>2025-09-24 11:53:49 -0700
commitfe835b0ca0ba4d6968cd2d1f824c178547934792 (patch)
treec56342bd6b6a814c36619b481c3cbef1d7829977 /midx.c
parent14aaf5c9d889a4988ffc64b39fe38bd19b930a50 (diff)
downloadgit-fe835b0ca0ba4d6968cd2d1f824c178547934792.tar.gz
odb: move MRU list of packfiles into `struct packfile_store`
The object database tracks the list of packfiles in most-recently-used order, which is mostly used to favor reading from packfiles that contain most of the objects that we're currently accessing. With the introduction of the `struct packfile_store` we have a better place to host this list though. Move the list accordingly. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'midx.c')
-rw-r--r--midx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/midx.c b/midx.c
index e96970efbf..91c7b3917d 100644
--- a/midx.c
+++ b/midx.c
@@ -468,7 +468,7 @@ int prepare_midx_pack(struct multi_pack_index *m,
m->source->local);
if (p) {
install_packed_git(r, p);
- list_add_tail(&p->mru, &r->objects->packed_git_mru);
+ list_add_tail(&p->mru, &r->objects->packfiles->mru);
}
}