Skip to content

Commit 0125c4e

Browse files
Fix ReorderBufferCheckMemoryLimit() comment.
Commit 7259736 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
1 parent 3845577 commit 0125c4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/replication/logical/reorderbuffer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3602,8 +3602,8 @@ ReorderBufferCheckMemoryLimit(ReorderBuffer *rb)
36023602
rb->size > 0))
36033603
{
36043604
/*
3605-
* Pick the largest transaction (or subtransaction) and evict it from
3606-
* memory by streaming, if possible. Otherwise, spill to disk.
3605+
* Pick the largest transaction and evict it from memory by streaming,
3606+
* if possible. Otherwise, spill to disk.
36073607
*/
36083608
if (ReorderBufferCanStartStreaming(rb) &&
36093609
(txn = ReorderBufferLargestStreamableTopTXN(rb)) != NULL)

0 commit comments

Comments
 (0)