diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-09-23 12:17:04 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-09-24 11:53:49 -0700 |
| commit | fe835b0ca0ba4d6968cd2d1f824c178547934792 (patch) | |
| tree | c56342bd6b6a814c36619b481c3cbef1d7829977 /odb.h | |
| parent | 14aaf5c9d889a4988ffc64b39fe38bd19b930a50 (diff) | |
| download | git-fe835b0ca0ba4d6968cd2d1f824c178547934792.tar.xz | |
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 'odb.h')
| -rw-r--r-- | odb.h | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -3,7 +3,6 @@ #include "hashmap.h" #include "object.h" -#include "list.h" #include "oidset.h" #include "oidmap.h" #include "string-list.h" @@ -138,9 +137,6 @@ struct object_database { * Should only be accessed directly by packfile.c and midx.c. */ struct packfile_store *packfiles; - /* A most-recently-used ordered version of the packed_git list. */ - struct list_head packed_git_mru; - struct { struct packed_git **packs; unsigned flags; |
