Commit 61d0c320 authored by Andres Freund's avatar Andres Freund

Improve grammar / fix typos in snapbuild.c.

Author: Erik Rijkers
Discussion: https://postgr.es/m/797c6c4496a1ae49cc69e90aa768bac2@xs4all.nl
parent c44c47a7
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
* xid. That is we keep a list of transactions between snapshot->(xmin, xmax) * xid. That is we keep a list of transactions between snapshot->(xmin, xmax)
* that we consider committed, everything else is considered aborted/in * that we consider committed, everything else is considered aborted/in
* progress. That also allows us not to care about subtransactions before they * progress. That also allows us not to care about subtransactions before they
* have committed which means this modules, in contrast to HS, doesn't have to * have committed which means this module, in contrast to HS, doesn't have to
* care about suboverflowed subtransactions and similar. * care about suboverflowed subtransactions and similar.
* *
* One complexity of doing this is that to e.g. handle mixed DDL/DML * One complexity of doing this is that to e.g. handle mixed DDL/DML
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
* Initially the machinery is in the START stage. When an xl_running_xacts * Initially the machinery is in the START stage. When an xl_running_xacts
* record is read that is sufficiently new (above the safe xmin horizon), * record is read that is sufficiently new (above the safe xmin horizon),
* there's a state transition. If there were no running xacts when the * there's a state transition. If there were no running xacts when the
* runnign_xacts record was generated, we'll directly go into CONSISTENT * running_xacts record was generated, we'll directly go into CONSISTENT
* state, otherwise we'll switch to the FULL_SNAPSHOT state. Having a full * state, otherwise we'll switch to the FULL_SNAPSHOT state. Having a full
* snapshot means that all transactions that start henceforth can be decoded * snapshot means that all transactions that start henceforth can be decoded
* in their entirety, but transactions that started previously can't. In * in their entirety, but transactions that started previously can't. In
...@@ -273,7 +273,7 @@ static bool SnapBuildRestore(SnapBuild *builder, XLogRecPtr lsn); ...@@ -273,7 +273,7 @@ static bool SnapBuildRestore(SnapBuild *builder, XLogRecPtr lsn);
/* /*
* Allocate a new snapshot builder. * Allocate a new snapshot builder.
* *
* xmin_horizon is the xid >=which we can be sure no catalog rows have been * xmin_horizon is the xid >= which we can be sure no catalog rows have been
* removed, start_lsn is the LSN >= we want to replay commits. * removed, start_lsn is the LSN >= we want to replay commits.
*/ */
SnapBuild * SnapBuild *
...@@ -1840,7 +1840,7 @@ CheckPointSnapBuild(void) ...@@ -1840,7 +1840,7 @@ CheckPointSnapBuild(void)
char path[MAXPGPATH]; char path[MAXPGPATH];
/* /*
* We start of with a minimum of the last redo pointer. No new replication * We start off with a minimum of the last redo pointer. No new replication
* slot will start before that, so that's a safe upper bound for removal. * slot will start before that, so that's a safe upper bound for removal.
*/ */
redo = GetRedoRecPtr(); redo = GetRedoRecPtr();
...@@ -1898,7 +1898,7 @@ CheckPointSnapBuild(void) ...@@ -1898,7 +1898,7 @@ CheckPointSnapBuild(void)
/* /*
* It's not particularly harmful, though strange, if we can't * It's not particularly harmful, though strange, if we can't
* remove the file here. Don't prevent the checkpoint from * remove the file here. Don't prevent the checkpoint from
* completing, that'd be cure worse than the disease. * completing, that'd be a cure worse than the disease.
*/ */
if (unlink(path) < 0) if (unlink(path) < 0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment