Skip to content

Commit e581fd7

Browse files
hanwengitster
authored andcommitted
reftable: reading/writing blocks
The reftable format is structured as a sequence of block. Within a block, records are prefix compressed, with an index of offsets for fully expand keys to enable binary search within blocks. This commit provides the logic to read and write these blocks. Helped-by: Carlo Marcelo Arenas Belón <[email protected]> Signed-off-by: Han-Wen Nienhuys <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a322920 commit e581fd7

File tree

5 files changed

+687
-0
lines changed

5 files changed

+687
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,10 +2458,12 @@ xdiff-objs: $(XDIFF_OBJS)
24582458

24592459
REFTABLE_OBJS += reftable/basics.o
24602460
REFTABLE_OBJS += reftable/error.o
2461+
REFTABLE_OBJS += reftable/block.o
24612462
REFTABLE_OBJS += reftable/blocksource.o
24622463
REFTABLE_OBJS += reftable/publicbasics.o
24632464
REFTABLE_OBJS += reftable/record.o
24642465

2466+
REFTABLE_TEST_OBJS += reftable/block_test.o
24652467
REFTABLE_TEST_OBJS += reftable/record_test.o
24662468
REFTABLE_TEST_OBJS += reftable/test_framework.o
24672469
REFTABLE_TEST_OBJS += reftable/basics_test.o

0 commit comments

Comments
 (0)