diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-05-30 14:15:11 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-05-30 14:15:11 -0700 |
| commit | 23528d352ac4b4fdfd982e7f9a12f306518ca8b6 (patch) | |
| tree | e6df331428d98d3a54974ac17fc9438e4d66e3d2 /reftable/stack.h | |
| parent | a60c21b7206fff1a6ab561e29ac7312c437d2592 (diff) | |
| parent | f518d91a2b6465c9951f4ee1ab316ee81894000c (diff) | |
| download | git-23528d352ac4b4fdfd982e7f9a12f306518ca8b6.tar.gz | |
Merge branch 'ps/reftable-write-options'
The knobs to tweak how reftable files are written have been made
available as configuration variables.
* ps/reftable-write-options:
refs/reftable: allow configuring geometric factor
reftable: make the compaction factor configurable
refs/reftable: allow disabling writing the object index
refs/reftable: allow configuring restart interval
reftable: use `uint16_t` to track restart interval
refs/reftable: allow configuring block size
reftable/dump: support dumping a table's block structure
reftable/writer: improve error when passed an invalid block size
reftable/writer: drop static variable used to initialize strbuf
reftable: pass opts as constant pointer
reftable: consistently refer to `reftable_write_options` as `opts`
Diffstat (limited to 'reftable/stack.h')
| -rw-r--r-- | reftable/stack.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/reftable/stack.h b/reftable/stack.h index d43efa4760..5b45cff4f7 100644 --- a/reftable/stack.h +++ b/reftable/stack.h @@ -20,7 +20,7 @@ struct reftable_stack { char *reftable_dir; - struct reftable_write_options config; + struct reftable_write_options opts; struct reftable_reader **readers; size_t readers_len; @@ -35,6 +35,7 @@ struct segment { uint64_t bytes; }; -struct segment suggest_compaction_segment(uint64_t *sizes, size_t n); +struct segment suggest_compaction_segment(uint64_t *sizes, size_t n, + uint8_t factor); #endif |
