summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorKarthik Nayak <karthik.188@gmail.com>2025-11-08 22:51:53 +0100
committerJunio C Hamano <gitster@pobox.com>2025-11-10 09:28:47 -0800
commit135f491f83d4763bdc61642eb0126ce2e6ada286 (patch)
tree97258afea604fa28bcd93fb3a11bd40b2155dd8b /contrib/persistent-https
parent31177a8bb6ee0a733342e0d67ee2b0f4b29263a2 (diff)
downloadgit-135f491f83d4763bdc61642eb0126ce2e6ada286.tar.gz
git-135f491f83d4763bdc61642eb0126ce2e6ada286.zip
reftable/stack: return stack segments directly
The `stack_table_sizes_for_compaction()` function returns individual sizes of each reftable table. This function is only called by `reftable_stack_auto_compact()` to decide which tables need to be compacted, if any. Modify the function to directly return the segments, which avoids the extra step of receiving the sizes only to pass it to `suggest_compaction_segment()`. A future commit will also add functionality for checking whether auto-compaction is necessary without performing it. This change allows code re-usability in that context. Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Acked-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions