aboutsummaryrefslogtreecommitdiff
path: root/reftable/reftable-writer.h
diff options
context:
space:
mode:
authorJustin Tobler <jltobler@gmail.com>2024-04-08 16:16:53 +0000
committerJunio C Hamano <gitster@pobox.com>2024-04-08 12:11:10 -0700
commitbc91330cecfdc9a00a486923126a969fee6ace36 (patch)
tree96daed5e1213eb75954214973d00fe0d88d4c2f5 /reftable/reftable-writer.h
parent7424fb779752c77f68d1cc793cd5c6cc3cc60971 (diff)
downloadgit-bc91330cecfdc9a00a486923126a969fee6ace36.tar.xz
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/reftable-writer.h')
-rw-r--r--reftable/reftable-writer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/reftable/reftable-writer.h b/reftable/reftable-writer.h
index 7c7cae5f99..155bf0bbe2 100644
--- a/reftable/reftable-writer.h
+++ b/reftable/reftable-writer.h
@@ -46,6 +46,9 @@ struct reftable_write_options {
* is a single line, and add '\n' if missing.
*/
unsigned exact_log_message : 1;
+
+ /* boolean: Prevent auto-compaction of tables. */
+ unsigned disable_auto_compact : 1;
};
/* reftable_block_stats holds statistics for a single block type */