aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMasahiko Sawada <msawada@postgresql.org>2023-08-02 15:01:08 +0900
committerMasahiko Sawada <msawada@postgresql.org>2023-08-02 15:01:08 +0900
commit01357f1da94b9926336448d88ac519f20ab27cd7 (patch)
tree5a9079f97b068686182f98522de4357846aa1f41 /src
parent67f3a697ba83489fc69fefd82bc6dbc19f87ac56 (diff)
downloadpostgresql-01357f1da94b9926336448d88ac519f20ab27cd7.tar.gz
postgresql-01357f1da94b9926336448d88ac519f20ab27cd7.zip
Fix ReorderBufferCheckMemoryLimit() comment.
Commit 7259736a6 updated the comment but it was not correct since ReorderBufferLargestStreamableTopTXN() returns only top-level transactions. Reviewed-by: Amit Kapila Discussion: https://postgr.es/m/CAD21AoA9XB7OR86BqvrCe2dMYX%2BZv3-BvVmjF%3DGY2z6jN-kqjg%40mail.gmail.com Backpatch-through: 14
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/logical/reorderbuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c
index b1882ae5ecf..3a68a393d23 100644
--- a/src/backend/replication/logical/reorderbuffer.c
+++ b/src/backend/replication/logical/reorderbuffer.c
@@ -3507,8 +3507,8 @@ ReorderBufferCheckMemoryLimit(ReorderBuffer *rb)
while (rb->size >= logical_decoding_work_mem * 1024L)
{
/*
- * Pick the largest transaction (or subtransaction) and evict it from
- * memory by streaming, if possible. Otherwise, spill to disk.
+ * Pick the largest transaction and evict it from memory by streaming,
+ * if possible. Otherwise, spill to disk.
*/
if (ReorderBufferCanStartStreaming(rb) &&
(txn = ReorderBufferLargestTopTXN(rb)) != NULL)