Skip to content

Commit 5b075ae

Browse files
committed
Fix misc typos in comments.
1 parent b082732 commit 5b075ae

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/backend/replication/logical/snapbuild.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
/*
137137
* This struct contains the current state of the snapshot building
138138
* machinery. Besides a forward declaration in the header, it is not exposed
139-
* to the public, so we can easily change it's contents.
139+
* to the public, so we can easily change its contents.
140140
*/
141141
struct SnapBuild
142142
{
@@ -607,7 +607,7 @@ SnapBuildExportSnapshot(SnapBuild *builder)
607607
/*
608608
* Reset a previously SnapBuildExportSnapshot()'ed snapshot if there is
609609
* any. Aborts the previously started transaction and resets the resource
610-
* owner back to it's original value.
610+
* owner back to its original value.
611611
*/
612612
void
613613
SnapBuildClearExportedSnapshot()
@@ -1033,7 +1033,7 @@ SnapBuildCommitTxn(SnapBuild *builder, XLogRecPtr lsn, TransactionId xid,
10331033
SnapBuildAddCommittedTxn(builder, xid);
10341034
}
10351035

1036-
/* if there's any reason to build a historic snapshot, to so now */
1036+
/* if there's any reason to build a historic snapshot, do so now */
10371037
if (forced_timetravel || top_needs_timetravel || sub_needs_timetravel)
10381038
{
10391039
/*
@@ -1093,7 +1093,7 @@ SnapBuildCommitTxn(SnapBuild *builder, XLogRecPtr lsn, TransactionId xid,
10931093
*/
10941094

10951095
/*
1096-
* Process a running xacts record, and use it's information to first build a
1096+
* Process a running xacts record, and use its information to first build a
10971097
* historic snapshot and later to release resources that aren't needed
10981098
* anymore.
10991099
*/
@@ -1404,8 +1404,8 @@ typedef struct SnapBuildOnDisk
14041404
/*
14051405
* Store/Load a snapshot from disk, depending on the snapshot builder's state.
14061406
*
1407-
* Supposed to be used by external (i.e. not snapbuild.c) code that just reada
1408-
* record that's a potential location for a serialized snapshot.
1407+
* Supposed to be used by external (i.e. not snapbuild.c) code that just read
1408+
* a record that's a potential location for a serialized snapshot.
14091409
*/
14101410
void
14111411
SnapBuildSerializationPoint(SnapBuild *builder, XLogRecPtr lsn)

src/backend/storage/lmgr/predicate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3234,8 +3234,8 @@ ReleasePredicateLocks(bool isCommit)
32343234
*
32353235
* If this value is changing, we don't care that much whether we get the
32363236
* old or new value -- it is just used to determine how far
3237-
* GlobalSerizableXmin must advance before this transaction can be fully
3238-
* cleaned up. The worst that could happen is we wait for one more
3237+
* GlobalSerializableXmin must advance before this transaction can be
3238+
* fully cleaned up. The worst that could happen is we wait for one more
32393239
* transaction to complete before freeing some RAM; correctness of visible
32403240
* behavior is not affected.
32413241
*/

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