diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-09-21 00:20:45 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-21 00:20:45 +0200 |
commit | c042ad5ad58d4e43aadc806850e76fef73848d2c (patch) | |
tree | 97f9ef041f508b21da08024f5787e0e6ea30ac24 /commit-graph.c | |
parent | Merge branch 'ds/mergies-with-sparse-index' (diff) | |
parent | Close object store closer to spawning child processes (diff) | |
download | git-c042ad5ad58d4e43aadc806850e76fef73848d2c.tar.xz git-c042ad5ad58d4e43aadc806850e76fef73848d2c.zip |
Merge branch 'js/run-command-close-packs'
The run-command API has been updated so that the callers can easily
ask the file descriptors open for packfiles to be closed immediately
before spawning commands that may trigger auto-gc.
* js/run-command-close-packs:
Close object store closer to spawning child processes
run_auto_maintenance(): implicitly close the object store
run-command: offer to close the object store before running
run-command: prettify the `RUN_COMMAND_*` flags
pull: release packs before fetching
commit-graph: when closing the graph, also release the slab
Diffstat (limited to 'commit-graph.c')
-rw-r--r-- | commit-graph.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commit-graph.c b/commit-graph.c index 4617059220..2706683acf 100644 --- a/commit-graph.c +++ b/commit-graph.c @@ -713,6 +713,7 @@ static void close_commit_graph_one(struct commit_graph *g) if (!g) return; + clear_commit_graph_data_slab(&commit_graph_data_slab); close_commit_graph_one(g->base_graph); free_commit_graph(g); } |