24
24
* two bytes allow us to be more space efficient.
25
25
*
26
26
* Replication progress is tracked in a shared memory table
27
- * (ReplicationStates ) that's dumped to disk every checkpoint. Entries
27
+ * (ReplicationState ) that's dumped to disk every checkpoint. Entries
28
28
* ('slots') in this table are identified by the internal id. That's the case
29
29
* because it allows to increase replication progress during crash
30
30
* recovery. To allow doing so we store the original LSN (from the originating
48
48
* pg_replication_slot is required for the duration. That allows us to
49
49
* safely and conflict free assign new origins using a dirty snapshot.
50
50
*
51
- * * When creating an in-memory replication progress slot the ReplicationOirgin
51
+ * * When creating an in-memory replication progress slot the ReplicationOrigin
52
52
* LWLock has to be held exclusively; when iterating over the replication
53
53
* progress a shared lock has to be held, the same when advancing the
54
54
* replication progress of an individual backend that has not setup as the
@@ -162,8 +162,8 @@ static ReplicationState *replication_states;
162
162
static ReplicationStateCtl * replication_states_ctl ;
163
163
164
164
/*
165
- * Backend-local, cached element from ReplicationStates for use in a backend
166
- * replaying remote commits, so we don't have to search ReplicationStates for
165
+ * Backend-local, cached element from ReplicationState for use in a backend
166
+ * replaying remote commits, so we don't have to search ReplicationState for
167
167
* the backends current RepOriginId.
168
168
*/
169
169
static ReplicationState * session_replication_state = NULL ;
@@ -441,7 +441,7 @@ ReplicationOriginShmemSize(void)
441
441
/*
442
442
* XXX: max_replication_slots is arguably the wrong thing to use, as here
443
443
* we keep the replay state of *remote* transactions. But for now it seems
444
- * sufficient to reuse it, lest we introduce a separate guc .
444
+ * sufficient to reuse it, lest we introduce a separate GUC .
445
445
*/
446
446
if (max_replication_slots == 0 )
447
447
return size ;
@@ -497,7 +497,7 @@ ReplicationOriginShmemInit(void)
497
497
*
498
498
* So its just the magic, followed by the statically sized
499
499
* ReplicationStateOnDisk structs. Note that the maximum number of
500
- * ReplicationStates is determined by max_replication_slots.
500
+ * ReplicationState is determined by max_replication_slots.
501
501
* ---------------------------------------------------------------------------
502
502
*/
503
503
void
@@ -1253,7 +1253,7 @@ pg_replication_origin_session_is_setup(PG_FUNCTION_ARGS)
1253
1253
* Return the replication progress for origin setup in the current session.
1254
1254
*
1255
1255
* If 'flush' is set to true it is ensured that the returned value corresponds
1256
- * to a local transaction that has been flushed. this is useful if asynchronous
1256
+ * to a local transaction that has been flushed. This is useful if asynchronous
1257
1257
* commits are used when replaying replicated transactions.
1258
1258
*/
1259
1259
Datum
@@ -1327,7 +1327,7 @@ pg_replication_origin_advance(PG_FUNCTION_ARGS)
1327
1327
* set up the initial replication state, but not for replay.
1328
1328
*/
1329
1329
replorigin_advance (node , remote_commit , InvalidXLogRecPtr ,
1330
- true /* go backward */ , true /* wal log */ );
1330
+ true /* go backward */ , true /* WAL log */ );
1331
1331
1332
1332
UnlockRelationOid (ReplicationOriginRelationId , RowExclusiveLock );
1333
1333
@@ -1339,7 +1339,7 @@ pg_replication_origin_advance(PG_FUNCTION_ARGS)
1339
1339
* Return the replication progress for an individual replication origin.
1340
1340
*
1341
1341
* If 'flush' is set to true it is ensured that the returned value corresponds
1342
- * to a local transaction that has been flushed. this is useful if asynchronous
1342
+ * to a local transaction that has been flushed. This is useful if asynchronous
1343
1343
* commits are used when replaying replicated transactions.
1344
1344
*/
1345
1345
Datum
0 commit comments