]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/stack: update stats on failed full compaction
authorPatrick Steinhardt <ps@pks.im>
Thu, 8 Aug 2024 14:06:34 +0000 (16:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Aug 2024 17:14:42 +0000 (10:14 -0700)
commit5f0ed603a1653f2394c468814bde4b0dca2cff45
treed29206b98814668e072709f087d283df3f816f62
parent8030100bdafc508eaa7900ebcfd67a2d6b02749e
reftable/stack: update stats on failed full compaction

When auto-compaction fails due to a locking error, we update the
statistics to indicate this failure. We're not doing the same when
performing a full compaction.

Fix this inconsistency by using `stack_compact_range_stats()`, which
handles the stat update for us.

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