]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/stack: expose option to disable auto-compaction
authorJustin Tobler <jltobler@gmail.com>
Mon, 8 Apr 2024 16:16:53 +0000 (16:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 Apr 2024 19:11:10 +0000 (12:11 -0700)
commitbc91330cecfdc9a00a486923126a969fee6ace36
tree96daed5e1213eb75954214973d00fe0d88d4c2f5
parent7424fb779752c77f68d1cc793cd5c6cc3cc60971
reftable/stack: expose option to disable auto-compaction

The reftable stack already has a variable to configure whether or not to
run auto-compaction, but it is inaccessible to users of the library.
There exist use cases where a caller may want to have more control over
auto-compaction.

Move the `disable_auto_compact` option into `reftable_write_options` to
allow external callers to disable auto-compaction. This will be used in
a subsequent commit.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/reftable-writer.h
reftable/stack.c
reftable/stack.h
reftable/stack_test.c