Skip to content

Commit 1f30295

Browse files
Remove poorly worded and duplicated comment
Move line of code to avoid need for duplicated comment Brought to attention by Masahiko Sawada
1 parent 27dae03 commit 1f30295

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
Size subxipoff = sizeof(SerializedSnapshotData) +

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy