aboutsummaryrefslogtreecommitdiff
path: root/odb.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-01-09 09:33:18 +0100
committerJunio C Hamano <gitster@pobox.com>2026-01-09 06:40:08 -0800
commita282a8f163fa70f9eacc880e6188141cef917058 (patch)
tree3c9068b3cd364c911013c3fa59097eadaa960639 /odb.c
parenta593373b097322adc74aa5f9614c7650f87ebed9 (diff)
downloadgit-a282a8f163fa70f9eacc880e6188141cef917058.tar.xz
packfile: move MIDX into packfile store
The multi-pack index still is tracked as a member of the object database source, but ultimately the MIDX is always tied to one specific packfile store. Move the structure into `struct packfile_store` accordingly. This ensures that the packfile store now keeps track of all data related to packfiles. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'odb.c')
-rw-r--r--odb.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/odb.c b/odb.c
index f159fbdd99..902251f9ed 100644
--- a/odb.c
+++ b/odb.c
@@ -1078,14 +1078,8 @@ struct object_database *odb_new(struct repository *repo,
void odb_close(struct object_database *o)
{
struct odb_source *source;
-
- for (source = o->sources; source; source = source->next) {
+ for (source = o->sources; source; source = source->next)
packfile_store_close(source->packfiles);
- if (source->midx)
- close_midx(source->midx);
- source->midx = NULL;
- }
-
close_commit_graph(o);
}