Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8b5262f

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 inothers. By changing it to subxip array, we make it consistent with similarreferences to xip array.Author: Japin LiReviewd by: Julien Rouhaud, Richard GuoDiscussion:https://postgr.es/m/MEYP282MB1669DCE7AC193A947CED2A95B6009@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
1 parente848be6 commit8b5262f

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 thesubxact array because this is
2412+
* way is to just store all xids in thesubxip 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 thesubxact array because it is by
2348+
* In recovery we store all xids in thesubxip 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)

[8]ページ先頭

©2009-2025 Movatter.jp