summaryrefslogtreecommitdiff
path: root/t/unit-tests
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-08 16:06:49 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-08 10:14:43 -0700
commit128b9aa3e9d3dc0417f8f65a240aad736db97959 (patch)
treea60bc899bf01b09400097dd603e61e1bf88e9022 /t/unit-tests
parent7ee307da1bfe3867f91fbd9a053494bc5fe61675 (diff)
reftable/stack: use lock_file when adding table to "tables.list"
When modifying "tables.list", we need to lock the list before updating it to ensure that no concurrent writers modify the list at the same point in time. While we do this via the `lock_file` subsystem when compacting the stack, we manually handle the lock when adding a new table to it. While not wrong, it is at least inconsistent. Refactor the code to consistently lock "tables.list" via the `lock_file` subsytem. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests')
0 files changed, 0 insertions, 0 deletions