]> Kevux Git Server - rit/commit
reftable/table: introduce iterator for table blocks
authorPatrick Steinhardt <ps@pks.im>
Mon, 7 Apr 2025 13:16:26 +0000 (15:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2025 21:53:12 +0000 (14:53 -0700)
commitda89659365181045b13df924de668764abf59444
tree9db1a00d7ece62a4c0e998baf5f0e8b8780d5ae5
parentc8cbe85a233c7f38cb644c2e6a676871c90c9dcd
reftable/table: introduce iterator for table blocks

Introduce a new iterator that allows the caller to iterate through all
blocks contained in a table. This gives users more fine-grained control
over how exactly those blocks are being read and exposes information to
callers that was previously inaccessible.

This iterator will be required by a future patch series that adds
consistency checks for the reftable backend. In addition to that though
we will also reimplement `reftable_table_print_blocks()` on top of this
new iterator in a subsequent commit.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/reftable-table.h
reftable/table.c
t/unit-tests/t-reftable-table.c