aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-03-25 11:02:50 +0100
committerJunio C Hamano <gitster@pobox.com>2024-03-25 09:54:07 -0700
commita2f711ade0c4816a59155d72559cbc4759cd4699 (patch)
tree5c3a8c6423e640d428a4ef88875269bae32a0ef4 /commit-graph.c
parentreftable/stack: use error codes when locking fails during compaction (diff)
downloadgit-a2f711ade0c4816a59155d72559cbc4759cd4699.tar.gz
git-a2f711ade0c4816a59155d72559cbc4759cd4699.zip
reftable/stack: gracefully handle failed auto-compaction due to locks
Whenever we commit a new table to the reftable stack we will end up invoking auto-compaction of the stack to keep the total number of tables at bay. This auto-compaction may fail though in case at least one of the tables which we are about to compact is locked. This is indicated by the compaction function returning `REFTABLE_LOCK_ERROR`. We do not handle this case though, and thus bubble that return value up the calling chain, which will ultimately cause a failure. Fix this bug by ignoring `REFTABLE_LOCK_ERROR`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions