object-store: close all packs upon clearing the object store
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
a80d72db2a
commit
d0b5986622
7
object.c
7
object.c
@ -5,6 +5,7 @@
|
||||
#include "commit.h"
|
||||
#include "tag.h"
|
||||
#include "object-store.h"
|
||||
#include "packfile.h"
|
||||
|
||||
static struct object **obj_hash;
|
||||
static int nr_objs, obj_hash_size;
|
||||
@ -483,8 +484,6 @@ void raw_object_store_clear(struct raw_object_store *o)
|
||||
o->alt_odb_tail = NULL;
|
||||
|
||||
INIT_LIST_HEAD(&o->packed_git_mru);
|
||||
/*
|
||||
* TODO: call close_all_packs once migrated to
|
||||
* take an object store argument
|
||||
*/
|
||||
close_all_packs(o);
|
||||
o->packed_git = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user