Make more use of binaryheap_empty() and binaryheap_size().
authorNathan Bossart <nathan@postgresql.org>
Tue, 1 Jul 2025 19:19:07 +0000 (14:19 -0500)
committerNathan Bossart <nathan@postgresql.org>
Tue, 1 Jul 2025 19:19:07 +0000 (14:19 -0500)
commit32bcf568cbc32ffc6d9be1b385d0f766720f7ebc
tree5a00120c695d88dda6163d9345adce8b4adf9d5b
parente6115394d40c5d8789b23e5badb2a7679ddd5203
Make more use of binaryheap_empty() and binaryheap_size().

A few places were accessing bh_size directly instead of via these
handy macros.

Author: Aleksander Alekseev <aleksander@timescale.com>
Discussion: https://postgr.es/m/CAJ7c6TPQMVL%2B028T4zuw9ZqL5Du9JavOLhBQLkJeK0RznYx_6w%40mail.gmail.com
src/backend/postmaster/pgarch.c
src/backend/replication/logical/reorderbuffer.c