summary refs log tree commit diff
path: root/object.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2019-01-06 17:45:39 +0100
committerJunio C Hamano <gitster@pobox.com>2019-01-08 09:40:19 -0800
commitd4e19e516325e211cedb070a487453ad2d1043be (patch)
treeaab53eee02f9c5219df3d85060fc9cdff9763fe7 /object.c
parent0000d6543f1c2ceea017161a2807167cdfbf8c0b (diff)
object-store: factor out odb_clear_loose_cache()
Add and use a function for emptying the loose object cache, so callers
don't have to know any of its implementation details.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 79d636091c..a5c5cf830f 100644
--- a/object.c
+++ b/object.c
@@ -485,7 +485,7 @@ struct raw_object_store *raw_object_store_new(void)
 static void free_object_directory(struct object_directory *odb)
 {
 	free(odb->path);
-	oid_array_clear(&odb->loose_objects_cache);
+	odb_clear_loose_cache(odb);
 	free(odb);
 }