aboutsummaryrefslogtreecommitdiffstats
path: root/refs/files-backend.c
diff options
context:
space:
mode:
authorKarthik Nayak <karthik.188@gmail.com>2025-11-06 09:22:30 +0100
committerJunio C Hamano <gitster@pobox.com>2025-11-06 10:00:07 -0800
commit4463808fd7d3d96bf77fa738bfb8beba3c9129f7 (patch)
tree97258afea604fa28bcd93fb3a11bd40b2155dd8b /refs/files-backend.c
parentMerge branch 'kn/refs-optim-cleanup' into kn/maintenance-is-needed (diff)
downloadgit-4463808fd7d3d96bf77fa738bfb8beba3c9129f7.tar.gz
git-4463808fd7d3d96bf77fa738bfb8beba3c9129f7.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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/files-backend.c')
0 files changed, 0 insertions, 0 deletions