pgsql: Fix variable reference in comment

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix variable reference in comment
Date: 2024-12-20 17:43:26
Message-ID: E1tOh25-000YdW-Rt@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix variable reference in comment

This used to say "nsubxcnt isn't decreased when subtransactions
abort", but there's no variable called nsubxcnt. Commit 8548ddc61b
changed it to "subxcnt", among other typo fixes, but that was wrong
too: the comment actually talks about txn->nsubtxns. That's the field
that's incremented but never decremented and is used for the
allocation earlier in the function.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d5a7bd5670c4a59bea506f5999101a8e40ef256c

Modified Files
--------------
src/backend/replication/logical/reorderbuffer.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2024-12-20 20:43:48 pgsql: Optimize alignment calculations in tuple form/deform
Previous Message Melanie Plageman 2024-12-20 14:44:26 pgsql: Fix overflow danger in SampleHeapTupleVisible(), take 2