mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01: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
4
odb.h
4
odb.h
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user