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>
This commit is contained in:

committed by
Junio C Hamano

parent
1920d17a99
commit
3a60f6a2c4
@ -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.*/
|
||||
|
||||
|
Reference in New Issue
Block a user