]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/stack: do not die when fsyncing lock file files
authorPatrick Steinhardt <ps@pks.im>
Thu, 8 Aug 2024 14:06:44 +0000 (16:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Aug 2024 17:14:43 +0000 (10:14 -0700)
commit7ee307da1bfe3867f91fbd9a053494bc5fe61675
tree3bc041f69d9f8af9ce7caae0bc1c8d3b9de32cb5
parent558f6fbeb1f194116231218b3e7496ceef4b9618
reftable/stack: do not die when fsyncing lock file files

We use `fsync_component_or_die()` when committing an addition to the
"tables.list" lock file, which unsurprisingly dies in case the fsync
fails. Given that this is part of the reftable library, we should never
die and instead let callers handle the error.

Adapt accordingly and use `fsync_component()` instead.

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