Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 40fc457

Browse files
committed
Minor typos / copy-editing for snapmgr.c
Noticed while reviewing snapshot management.
1 parent d8c2dcc commit 40fc457

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/utils/time/snapmgr.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* tracked by any resource owner.
2121
*
2222
* The same is true for historic snapshots used during logical decoding,
23-
* their lifetime is managed separately (as they life longer as one xact.c
23+
* their lifetime is managed separately (as they live longer as one xact.c
2424
* transaction).
2525
*
2626
* These arrangements let us reset MyPgXact->xmin when there are no snapshots
@@ -228,7 +228,7 @@ static void SnapshotResetXmin(void);
228228
* Snapshot fields to be serialized.
229229
*
230230
* Only these fields need to be sent to the cooperating backend; the
231-
* remaining ones can (and must) set by the receiver upon restore.
231+
* remaining ones can (and must) be set by the receiver upon restore.
232232
*/
233233
typedef struct SerializedSnapshotData
234234
{
@@ -709,8 +709,8 @@ UpdateActiveSnapshotCommandId(void)
709709

710710
/*
711711
* Don't allow modification of the active snapshot during parallel
712-
* operation. We share the snapshot to worker backends at beginning of
713-
* parallel operation, so any change to snapshot can lead to
712+
* operation. We share the snapshot to worker backends at the beginning of
713+
* parallel operation, so any change to the snapshot can lead to
714714
* inconsistencies. We have other defenses against
715715
* CommandCounterIncrement, but there are a few places that call this
716716
* directly, so we put an additional guard here.
@@ -1892,7 +1892,7 @@ HistoricSnapshotGetTupleCids(void)
18921892

18931893
/*
18941894
* EstimateSnapshotSpace
1895-
* Returns the size need to store the given snapshot.
1895+
* Returns the size needed to store the given snapshot.
18961896
*
18971897
* We are exporting only required fields from the Snapshot, stored in
18981898
* SerializedSnapshotData.

0 commit comments

Comments
 (0)