reftable/merged: handle subiter cleanup on close only
commit3b6dd6ad1da614dec42576de416e819cb77b1592
authorPatrick Steinhardt <ps@pks.im>
Mon, 4 Mar 2024 10:49:08 +0000 (4 11:49 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Mar 2024 18:19:39 +0000 (4 10:19 -0800)
treefc7b066a9220fa308cbaad9cc125d36109ca2cbe
parent2d71a1d4a23a42ac7dfc927d7263b8eef03fee2f
reftable/merged: handle subiter cleanup on close only

When advancing one of the subiters fails we immediately release
resources associated with that subiter. This is not necessary though as
we will release these resources when closing the merged iterator anyway.

Drop the logic and only release resources when the merged iterator is
done. This is a mere cleanup that should help reduce the cognitive load
when reading through the code.

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