mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
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
This commit is contained in:
parent
67f3a697ba
commit
01357f1da9
@ -3507,8 +3507,8 @@ ReorderBufferCheckMemoryLimit(ReorderBuffer *rb)
|
|||||||
while (rb->size >= logical_decoding_work_mem * 1024L)
|
while (rb->size >= logical_decoding_work_mem * 1024L)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Pick the largest transaction (or subtransaction) and evict it from
|
* Pick the largest transaction and evict it from memory by streaming,
|
||||||
* memory by streaming, if possible. Otherwise, spill to disk.
|
* if possible. Otherwise, spill to disk.
|
||||||
*/
|
*/
|
||||||
if (ReorderBufferCanStartStreaming(rb) &&
|
if (ReorderBufferCanStartStreaming(rb) &&
|
||||||
(txn = ReorderBufferLargestTopTXN(rb)) != NULL)
|
(txn = ReorderBufferLargestTopTXN(rb)) != NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user