Skip to content

Commit fd40eb1

Browse files
hlinnakapull[bot]
authored andcommitted
Update outdated comment for TransactionIdSetTreeStatus
Commit 06da3c5 changed the way subtransactions are marked as SUBCOMMITTED, but the example it included actually documented the old way. Update it. Author: Japin Li Discussion: https://www.postgresql.org/message-id/MEYP282MB16690BC96DFBE08CC857E1E3B6319%40MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
1 parent fe32b32 commit fd40eb1

File tree

1 file changed

+1
-3
lines changed
  • src/backend/access/transam

1 file changed

+1
-3
lines changed

src/backend/access/transam/clog.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ static void TransactionIdSetPageStatusInternal(TransactionId xid, int nsubxids,
146146
* page2: set t2,t3 as sub-committed
147147
* page3: set t4 as sub-committed
148148
* 2. update page1:
149-
* set t1 as sub-committed,
150-
* then set t as committed,
151-
then set t1 as committed
149+
* page1: set t,t1 as committed
152150
* 3. update pages2-3:
153151
* page2: set t2,t3 as committed
154152
* page3: set t4 as committed

0 commit comments

Comments
 (0)