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

Commit1f30295

Browse files
Remove poorly worded and duplicated comment
Move line of code to avoid need for duplicated commentBrought to attention by Masahiko Sawada
1 parent27dae03 commit1f30295

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

‎src/backend/utils/time/snapmgr.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,14 +2039,6 @@ SerializeSnapshot(Snapshot snapshot, char *start_address)
20392039
serialized_snapshot.whenTaken=snapshot->whenTaken;
20402040
serialized_snapshot.lsn=snapshot->lsn;
20412041

2042-
/*
2043-
* Ignore the SubXID array if it has overflowed, unless the snapshot was
2044-
* taken during recovey - in that case, top-level XIDs are in subxip as
2045-
* well, and we mustn't lose them.
2046-
*/
2047-
if (serialized_snapshot.suboverflowed&& !snapshot->takenDuringRecovery)
2048-
serialized_snapshot.subxcnt=0;
2049-
20502042
/* Copy struct to possibly-unaligned buffer */
20512043
memcpy(start_address,
20522044
&serialized_snapshot,sizeof(SerializedSnapshotData));
@@ -2063,6 +2055,9 @@ SerializeSnapshot(Snapshot snapshot, char *start_address)
20632055
* snapshot taken during recovery; all the top-level XIDs are in subxip as
20642056
* well in that case, so we mustn't lose them.
20652057
*/
2058+
if (serialized_snapshot.suboverflowed&& !snapshot->takenDuringRecovery)
2059+
serialized_snapshot.subxcnt=0;
2060+
20662061
if (serialized_snapshot.subxcnt>0)
20672062
{
20682063
Sizesubxipoff=sizeof(SerializedSnapshotData)+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp