Skip to content

Commit 8b5262f

Browse files
author
Amit Kapila
committed
Improve comments referring snapshot's subxip array.
It was referred to as subxact array in a few places and subxip array in others. By changing it to subxip array, we make it consistent with similar references to xip array. Author: Japin Li Reviewd by: Julien Rouhaud, Richard Guo Discussion: https://postgr.es/m/MEYP282MB1669DCE7AC193A947CED2A95B6009@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
1 parent e848be6 commit 8b5262f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/storage/ipc/procarray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2409,7 +2409,7 @@ GetSnapshotData(Snapshot snapshot)
24092409
* We could try to store xids into xip[] first and then into subxip[]
24102410
* if there are too many xids. That only works if the snapshot doesn't
24112411
* overflow because we do not search subxip[] in that case. A simpler
2412-
* way is to just store all xids in the subxact array because this is
2412+
* way is to just store all xids in the subxip array because this is
24132413
* by far the bigger array. We just leave the xip array empty.
24142414
*
24152415
* Either way we need to change the way XidInMVCCSnapshot() works

src/backend/utils/time/snapmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2345,7 +2345,7 @@ XidInMVCCSnapshot(TransactionId xid, Snapshot snapshot)
23452345
else
23462346
{
23472347
/*
2348-
* In recovery we store all xids in the subxact array because it is by
2348+
* In recovery we store all xids in the subxip array because it is by
23492349
* far the bigger array, and we mostly don't know which xids are
23502350
* top-level and which are subxacts. The xip array is empty.
23512351
*

0 commit comments

Comments
 (0)