diff options
| author | Justin Tobler <jltobler@gmail.com> | 2024-04-08 16:16:53 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-04-08 12:11:10 -0700 |
| commit | bc91330cecfdc9a00a486923126a969fee6ace36 (patch) | |
| tree | 96daed5e1213eb75954214973d00fe0d88d4c2f5 /reftable/stack.c | |
| parent | Merge branch 'ps/pack-refs-auto' into jt/reftable-geometric-compaction (diff) | |
| download | git-bc91330cecfdc9a00a486923126a969fee6ace36.tar.gz git-bc91330cecfdc9a00a486923126a969fee6ace36.zip | |
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>
Diffstat (limited to 'reftable/stack.c')
| -rw-r--r-- | reftable/stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reftable/stack.c b/reftable/stack.c index dde50b61d6..1a7cdad12c 100644 --- a/reftable/stack.c +++ b/reftable/stack.c @@ -680,7 +680,7 @@ int reftable_addition_commit(struct reftable_addition *add) if (err) goto done; - if (!add->stack->disable_auto_compact) { + if (!add->stack->config.disable_auto_compact) { /* * Auto-compact the stack to keep the number of tables in * control. It is possible that a concurrent writer is already |
