mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
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
This commit is contained in:
@@ -1415,7 +1415,7 @@ ReorderBufferIterTXNNext(ReorderBuffer *rb, ReorderBufferIterTXNState *state)
|
||||
int32 off;
|
||||
|
||||
/* nothing there anymore */
|
||||
if (state->heap->bh_size == 0)
|
||||
if (binaryheap_empty(state->heap))
|
||||
return NULL;
|
||||
|
||||
off = DatumGetInt32(binaryheap_first(state->heap));
|
||||
|
||||
Reference in New Issue
Block a user