diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-03-07 14:10:31 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-03-07 12:34:13 -0800 |
| commit | 4ae540d421c5a763a14fbe79a35d6f6ca004a21b (patch) | |
| tree | 1267a830243865edbca8e8b6a624035c56f83558 /diff.c | |
| parent | b387623c12f3f4a376e4d35a610fd3e55d7ea907 (diff) | |
lockfile: report when rollback fails
We do not report to the caller when rolling back a lockfile fails, which
will be needed by the reftable compaction logic in a subsequent commit.
It also cannot really report on all errors because the function calls
`delete_tempfile()`, which doesn't return an error either.
Refactor the code so that both `delete_tempfile()` and
`rollback_lock_file()` return an error code.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions
