mirror of
https://github.com/git/git.git
synced 2026-01-09 17:46:37 +00:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
14aaf5c9d8
commit
fe835b0ca0
@@ -64,6 +64,9 @@ struct packfile_store {
|
||||
*/
|
||||
struct packed_git *packs;
|
||||
|
||||
/* A most-recently-used ordered version of the packs list. */
|
||||
struct list_head mru;
|
||||
|
||||
/*
|
||||
* A map of packfile names to packed_git structs for tracking which
|
||||
* packs have been loaded already.
|
||||
|
||||
Reference in New Issue
Block a user