aboutsummaryrefslogtreecommitdiff
path: root/src/backend/replication/logical/reorderbuffer.c
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2025-07-01 14:19:07 -0500
committerNathan Bossart <nathan@postgresql.org>2025-07-01 14:19:07 -0500
commit32bcf568cbc32ffc6d9be1b385d0f766720f7ebc (patch)
tree5a00120c695d88dda6163d9345adce8b4adf9d5b /src/backend/replication/logical/reorderbuffer.c
parente6115394d40c5d8789b23e5badb2a7679ddd5203 (diff)
downloadpostgresql-32bcf568cbc32ffc6d9be1b385d0f766720f7ebc.tar.gz
postgresql-32bcf568cbc32ffc6d9be1b385d0f766720f7ebc.zip
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
Diffstat (limited to 'src/backend/replication/logical/reorderbuffer.c')
-rw-r--r--src/backend/replication/logical/reorderbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c
index c4299c76fb1..7b4e8629553 100644
--- a/src/backend/replication/logical/reorderbuffer.c
+++ b/src/backend/replication/logical/reorderbuffer.c
@@ -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));