]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/stack: register lockfiles during compaction
authorPatrick Steinhardt <ps@pks.im>
Thu, 7 Mar 2024 13:10:39 +0000 (14:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Mar 2024 20:34:13 +0000 (12:34 -0800)
commit3a60f6a2c472e8291894308247a8fecb0c76cb51
treeabb8a2a2134a5028179c9e75970d24e02d12677c
parent1920d17a99e83f48c0bad5200df9f6f0d8785518
reftable/stack: register lockfiles during compaction

We do not register any of the locks we acquire when compacting the
reftable stack via our lockfiles interfaces. These locks will thus not
be released when Git gets killed.

Refactor the code to register locks as lockfiles.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/stack.c
reftable/system.h