]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/reader: handle allocation failures in `reader_init_iter()`
authorPatrick Steinhardt <ps@pks.im>
Wed, 2 Oct 2024 10:55:59 +0000 (12:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Oct 2024 14:53:53 +0000 (07:53 -0700)
commit0a8372f50924f4ee24deb6aed8361ba9e5a67f66
tree6842694e32fce89f1485ce5fce42aff12f0dc5a2
parent18da60029319733e2d931f2758a8e47b8b25b117
reftable/reader: handle allocation failures in `reader_init_iter()`

Handle allocation failures in `reader_init_iter()`. This requires us to
also adapt `reftable_reader_init_*_iterator()` to bubble up the new
error codes. Adapt callers accordingly.

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