]> git.99rst.org Git - git.git/commit
reftable: propagate specific error codes in block_writer_add()
authorMeet Soni <redacted>
Wed, 19 Mar 2025 15:29:25 +0000 (20:59 +0530)
committerJunio C Hamano <redacted>
Fri, 21 Mar 2025 08:51:07 +0000 (01:51 -0700)
commit27571684ddca217d65c5f39947f20b9f5ec91863
tree87f88f43bc988aec56dc02933a182e7676f08301
parent683c54c999c301c2cd6f715c411407c413b1d84e
reftable: propagate specific error codes in block_writer_add()

Previously, functions block_writer_add() and related functions returned
-1 when the record did not fit, forcing the caller to assume that any
failure meant the entry was too big. Replace these generic -1 returns
with defined error codes.

This prepares the codebase for finer-grained error handling so that
callers can distinguish between a block-full condition and other errors.

Signed-off-by: Meet Soni <redacted>
Acked-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
reftable/block.c
reftable/block.h
reftable/record.c
git clone https://git.99rst.org/PROJECT