diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-03-07 14:10:39 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-03-07 12:34:13 -0800 |
| commit | 3a60f6a2c472e8291894308247a8fecb0c76cb51 (patch) | |
| tree | abb8a2a2134a5028179c9e75970d24e02d12677c /reftable/system.h | |
| parent | 1920d17a99e83f48c0bad5200df9f6f0d8785518 (diff) | |
| download | git-3a60f6a2c472e8291894308247a8fecb0c76cb51.tar.xz | |
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>
Diffstat (limited to 'reftable/system.h')
| -rw-r--r-- | reftable/system.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/reftable/system.h b/reftable/system.h index 6b74a81514..5d8b6dede5 100644 --- a/reftable/system.h +++ b/reftable/system.h @@ -12,7 +12,9 @@ https://developers.google.com/open-source/licenses/bsd /* This header glues the reftable library to the rest of Git */ #include "git-compat-util.h" +#include "lockfile.h" #include "strbuf.h" +#include "tempfile.h" #include "hash-ll.h" /* hash ID, sizes.*/ #include "dir.h" /* remove_dir_recursively, for tests.*/ |
