]> git.99rst.org Git - git.git/commit
reftable/block: handle allocation failures
authorPatrick Steinhardt <redacted>
Wed, 2 Oct 2024 10:56:19 +0000 (12:56 +0200)
committerJunio C Hamano <redacted>
Wed, 2 Oct 2024 14:53:55 +0000 (07:53 -0700)
commit2d5dbb37b284e3ca78137ec0f8a3d9ceef78877c
treedebe5c06871bcf2648fd5de1d018d31d1df9ce67
parentcd6a47167e068812735950b841c7174cd7cd321e
reftable/block: handle allocation failures

Handle allocation failures in `block_writer_init()` and
`block_reader_init()`. This requires us to bubble up error codes into
`writer_reinit_block_writer()`. Adapt call sites accordingly.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
reftable/block.c
reftable/block.h
reftable/writer.c
t/unit-tests/t-reftable-block.c
git clone https://git.99rst.org/PROJECT