diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-20 05:14:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-20 05:14:39 +0000 |
commit | 7260c37aa8c91c8008dcd2442a19c23d1c9040fb (patch) | |
tree | 83953428f11212a71a4616e535c1053076f9bb94 /reftable/stack.h | |
parent | Releasing progress-linux version 1:2.43.0-1~progress7.99u1. (diff) | |
download | git-7260c37aa8c91c8008dcd2442a19c23d1c9040fb.tar.xz git-7260c37aa8c91c8008dcd2442a19c23d1c9040fb.zip |
Merging upstream version 1:2.45.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'reftable/stack.h')
-rw-r--r-- | reftable/stack.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/reftable/stack.h b/reftable/stack.h index f570058..d43efa4 100644 --- a/reftable/stack.h +++ b/reftable/stack.h @@ -14,9 +14,11 @@ https://developers.google.com/open-source/licenses/bsd #include "reftable-stack.h" struct reftable_stack { + struct stat list_st; char *list_file; + int list_fd; + char *reftable_dir; - int disable_auto_compact; struct reftable_write_options config; @@ -29,13 +31,10 @@ struct reftable_stack { int read_lines(const char *filename, char ***lines); struct segment { - int start, end; - int log; + size_t start, end; uint64_t bytes; }; -int fastlog2(uint64_t sz); -struct segment *sizes_to_segments(int *seglen, uint64_t *sizes, int n); -struct segment suggest_compaction_segment(uint64_t *sizes, int n); +struct segment suggest_compaction_segment(uint64_t *sizes, size_t n); #endif |