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

Commit 61d0c32

Browse files
committed
Improve grammar / fix typos in snapbuild.c.
Author: Erik Rijkers Discussion: https://postgr.es/m/797c6c4496a1ae49cc69e90aa768bac2@xs4all.nl
1 parent c44c47a commit 61d0c32

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/replication/logical/snapbuild.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* xid. That is we keep a list of transactions between snapshot->(xmin, xmax)
3535
* that we consider committed, everything else is considered aborted/in
3636
* progress. That also allows us not to care about subtransactions before they
37-
* have committed which means this modules, in contrast to HS, doesn't have to
37+
* have committed which means this module, in contrast to HS, doesn't have to
3838
* care about suboverflowed subtransactions and similar.
3939
*
4040
* One complexity of doing this is that to e.g. handle mixed DDL/DML
@@ -82,7 +82,7 @@
8282
* Initially the machinery is in the START stage. When an xl_running_xacts
8383
* record is read that is sufficiently new (above the safe xmin horizon),
8484
* there's a state transition. If there were no running xacts when the
85-
* runnign_xacts record was generated, we'll directly go into CONSISTENT
85+
* running_xacts record was generated, we'll directly go into CONSISTENT
8686
* state, otherwise we'll switch to the FULL_SNAPSHOT state. Having a full
8787
* snapshot means that all transactions that start henceforth can be decoded
8888
* in their entirety, but transactions that started previously can't. In
@@ -273,7 +273,7 @@ static bool SnapBuildRestore(SnapBuild *builder, XLogRecPtr lsn);
273273
/*
274274
* Allocate a new snapshot builder.
275275
*
276-
* xmin_horizon is the xid >=which we can be sure no catalog rows have been
276+
* xmin_horizon is the xid >= which we can be sure no catalog rows have been
277277
* removed, start_lsn is the LSN >= we want to replay commits.
278278
*/
279279
SnapBuild *
@@ -1840,7 +1840,7 @@ CheckPointSnapBuild(void)
18401840
char path[MAXPGPATH];
18411841

18421842
/*
1843-
* We start of with a minimum of the last redo pointer. No new replication
1843+
* We start off with a minimum of the last redo pointer. No new replication
18441844
* slot will start before that, so that's a safe upper bound for removal.
18451845
*/
18461846
redo = GetRedoRecPtr();
@@ -1898,7 +1898,7 @@ CheckPointSnapBuild(void)
18981898
/*
18991899
* It's not particularly harmful, though strange, if we can't
19001900
* remove the file here. Don't prevent the checkpoint from
1901-
* completing, that'd be cure worse than the disease.
1901+
* completing, that'd be a cure worse than the disease.
19021902
*/
19031903
if (unlink(path) < 0)
19041904
{

0 commit comments

Comments
 (0)