| 956 | } |
| 957 | |
| 958 | uint64_t reftable_stack_next_update_index(struct reftable_stack *st) |
| 959 | { |
| 960 | int sz = st->merged->tables_len; |
| 961 | if (sz > 0) |
| 962 | return reftable_table_max_update_index(st->tables[sz - 1]) + |
| 963 | 1; |
| 964 | return 1; |
| 965 | } |
| 966 | |
| 967 | static int stack_write_compact(struct reftable_stack *st, |
| 968 | struct reftable_writer *wr, |