git/reftable
Patrick Steinhardt e08f49a4f5 reftable/merged: split up initialization and seeking of records
To initialize a `struct merged_iter`, we need to seek all subiterators
to the wanted record and then add their results to the priority queue
used to sort the records. This logic is split up across two functions,
`merged_table_seek_record()` and `merged_iter_init()`. The scope of
these functions is somewhat weird though, where `merged_iter_init()` is
only responsible for adding the records of the subiterators to the
priority queue.

Clarify the scope of those functions such that `merged_iter_init()` is
only responsible for initializing the iterator's structure. Performing
the subiterator seeks are now part of `merged_table_seek_record()`.

This step is required to move seeking of records into the generic
`struct reftable_iterator` infrastructure.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-05-13 17:04:17 -07:00
..
LICENSE
…
basics.c reftable/block: fix error handling when searching restart points 2024-04-03 09:16:50 -07:00
basics.h reftable/block: fix error handling when searching restart points 2024-04-03 09:16:50 -07:00
basics_test.c reftable/basics: improve `binsearch()` test 2024-04-03 09:16:49 -07:00
block.c reftable/block: use `size_t` to track restart point index 2024-05-13 17:04:16 -07:00
block.h Merge branch 'ps/reftable-write-optim' 2024-05-08 10:18:43 -07:00
block_test.c reftable/block: merge `block_iter_seek()` and `block_reader_seek()` 2024-04-15 10:36:09 -07:00
blocksource.c
…
blocksource.h
…
constants.h
…
dump.c
…
error.c Merge branch 'ps/reftable-write-optim' 2024-05-08 10:18:43 -07:00
generic.c
…
generic.h
…
iter.c reftable/block: rename `block_reader_start()` 2024-04-15 10:36:09 -07:00
iter.h
…
merged.c reftable/merged: split up initialization and seeking of records 2024-05-13 17:04:17 -07:00
merged.h
…
merged_test.c reftable/record: convert old and new object IDs to arrays 2024-03-05 09:10:06 -08:00
pq.c reftable: allow inlining of a few functions 2024-03-04 10:19:49 -08:00
pq.h reftable: allow inlining of a few functions 2024-03-04 10:19:49 -08:00
pq_test.c
…
publicbasics.c
…
reader.c reftable/reader: set up the reader when initializing table iterator 2024-05-13 17:04:17 -07:00
reader.h
…
readwrite_test.c reftable/record: convert old and new object IDs to arrays 2024-03-05 09:10:06 -08:00
record.c reftable/record: extract function to decode key lengths 2024-04-03 09:16:50 -07:00
record.h reftable/record: extract function to decode key lengths 2024-04-03 09:16:50 -07:00
record_test.c reftable/record: use scratch buffer when decoding records 2024-03-05 09:10:06 -08:00
reftable-blocksource.h
…
reftable-error.h Merge branch 'ps/reftable-write-optim' 2024-05-08 10:18:43 -07:00
reftable-generic.h
…
reftable-iterator.h
…
reftable-malloc.h
…
reftable-merged.h
…
reftable-reader.h
…
reftable-record.h reftable/record: reuse message when decoding log records 2024-03-05 09:10:06 -08:00
reftable-stack.h
…
reftable-tests.h reftable: remove name checks 2024-04-08 17:01:41 -07:00
reftable-writer.h Merge branch 'ps/reftable-write-optim' 2024-05-08 10:18:43 -07:00
stack.c Merge branch 'ps/reftable-write-optim' 2024-05-08 10:18:43 -07:00
stack.h reftable/stack: use geometric table compaction 2024-04-08 12:11:10 -07:00
stack_test.c Merge branch 'ps/reftable-write-optim' 2024-05-08 10:18:43 -07:00
system.h reftable/stack: register lockfiles during compaction 2024-03-07 12:34:13 -08:00
test_framework.c
…
test_framework.h
…
tree.c
…
tree.h
…
tree_test.c
…
writer.c reftable/writer: reset `last_key` instead of releasing it 2024-04-08 17:01:41 -07:00
writer.h
…