2 Copyright 2020 Google LLC
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file or at
6 https://developers.google.com/open-source/licenses/bsd
13 #include "reftable-writer.h"
14 #include "reftable-stack.h"
16 struct reftable_stack
{
22 int disable_auto_compact
;
24 struct reftable_write_options config
;
26 struct reftable_reader
**readers
;
28 struct reftable_merged_table
*merged
;
29 struct reftable_compaction_stats stats
;
32 int read_lines(const char *filename
, char ***lines
);
40 int fastlog2(uint64_t sz
);
41 struct segment
*sizes_to_segments(size_t *seglen
, uint64_t *sizes
, size_t n
);
42 struct segment
suggest_compaction_segment(uint64_t *sizes
, size_t n
);