Merge branch 'jk/http-leakfixes' into ps/leakfixes-part-8
[git/gitster.git] / reftable / merged.h
blobde5fd33f010b1bf7f5c9435b0199fa2b0cc7d3b6
1 /*
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
7 */
9 #ifndef MERGED_H
10 #define MERGED_H
12 #include "system.h"
14 struct reftable_merged_table {
15 struct reftable_reader **readers;
16 size_t readers_len;
17 uint32_t hash_id;
19 /* If unset, produce deletions. This is useful for compaction. For the
20 * full stack, deletions should be produced. */
21 int suppress_deletions;
23 uint64_t min;
24 uint64_t max;
27 struct reftable_iterator;
29 void merged_table_init_iter(struct reftable_merged_table *mt,
30 struct reftable_iterator *it,
31 uint8_t typ);
33 #endif