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>
This commit is contained in:
Justin Tobler
2024-04-08 16:16:53 +00:00
committed by Junio C Hamano
parent 7424fb7797
commit bc91330cec
4 changed files with 10 additions and 7 deletions

View File

@ -19,7 +19,6 @@ struct reftable_stack {
int list_fd;
char *reftable_dir;
int disable_auto_compact;
struct reftable_write_options config;