aboutsummaryrefslogtreecommitdiffstats
path: root/t/unit-tests/t-reftable-pq.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-11-18 16:34:08 +0100
committerJunio C Hamano <gitster@pobox.com>2024-11-19 12:23:11 +0900
commit988e7f5e952bbb7b6ae885f4da744f536f22693f (patch)
tree7f0728eb78d9b5f5f3dc77003e712f774519e5ea /t/unit-tests/t-reftable-pq.c
parent6361226b79d24eb93a14e0b7d25f584269f9d5e6 (diff)
downloadgit-988e7f5e952bbb7b6ae885f4da744f536f22693f.tar.gz
reftable/system: provide thin wrapper for lockfile subsystem
We use the lockfile subsystem to write lockfiles for "tables.list". As with the tempfile subsystem, the lockfile subsystem also hooks into our infrastructure to prune stale locks via atexit(3p) or signal handlers. Furthermore, the lockfile subsystem also handles locking timeouts, which do add quite a bit of logic. Having to reimplement that in the context of Git wouldn't make a whole lot of sense, and it is quite likely that downstream users of the reftable library may have a better idea for how exactly to implement timeouts. So again, provide a thin wrapper for the lockfile subsystem instead such that the compatibility shim is fully self-contained. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/t-reftable-pq.c')
-rw-r--r--t/unit-tests/t-reftable-pq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/unit-tests/t-reftable-pq.c b/t/unit-tests/t-reftable-pq.c
index 272da05bea..f3f8a0cdf3 100644
--- a/t/unit-tests/t-reftable-pq.c
+++ b/t/unit-tests/t-reftable-pq.c
@@ -9,6 +9,7 @@ https://developers.google.com/open-source/licenses/bsd
#include "test-lib.h"
#include "reftable/constants.h"
#include "reftable/pq.h"
+#include "strbuf.h"
static void merged_iter_pqueue_check(const struct merged_iter_pqueue *pq)
{