aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2020-12-19 10:08:46 +0530
committerAmit Kapila <akapila@postgresql.org>2020-12-19 10:08:46 +0530
commit20659fd8e5ecb3bcb3e337581c4bd7123d490ddc (patch)
tree3a824f8c7c49c5bee5f602e06c8c4547cc93e5f4 /src
parent8afca702ecbf0730b6175afda0cecbbf0a1967e7 (diff)
downloadpostgresql-20659fd8e5ecb3bcb3e337581c4bd7123d490ddc.tar.gz
postgresql-20659fd8e5ecb3bcb3e337581c4bd7123d490ddc.zip
Update comment atop of ReorderBufferQueueMessage().
The comments atop of this function describes behaviour in case of a transactional WAL message only, but it accepts both transactional and non-transactional WAL messages. Update the comments to describe behaviour in case of non-transactional WAL message as well. Ashutosh Bapat, rephrased by Amit Kapila Discussion: https://postgr.es/m/CAGEoWWTTzNzHOi8bj0wfAo1siGi-YEh6wqH1oaz4DrkTJ6HbTQ@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/logical/reorderbuffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c
index 7359fa9df2b..6b0a59efaf5 100644
--- a/src/backend/replication/logical/reorderbuffer.c
+++ b/src/backend/replication/logical/reorderbuffer.c
@@ -783,7 +783,8 @@ ReorderBufferQueueChange(ReorderBuffer *rb, TransactionId xid, XLogRecPtr lsn,
}
/*
- * Queue message into a transaction so it can be processed upon commit.
+ * A transactional message is queued to be processed upon commit and a
+ * non-transactional message gets processed immediately.
*/
void
ReorderBufferQueueMessage(ReorderBuffer *rb, TransactionId xid,