mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Fix inconsistencies and typos in the tree, take 10
This addresses some issues with unnecessary code comments, fixes various typos in docs and comments, and removes some orphaned structures and definitions. Author: Alexander Lakhin Discussion: https://postgr.es/m/9aabc775-5494-b372-8bcb-4dfc0bd37c68@gmail.com
This commit is contained in:
@@ -792,7 +792,7 @@ SendBackupHeader(List *tablespaces)
|
||||
pq_sendint32(&buf, 0); /* typmod */
|
||||
pq_sendint16(&buf, 0); /* format code */
|
||||
|
||||
/* Second field - spcpath */
|
||||
/* Second field - spclocation */
|
||||
pq_sendstring(&buf, "spclocation");
|
||||
pq_sendint32(&buf, 0);
|
||||
pq_sendint16(&buf, 0);
|
||||
|
||||
@@ -269,7 +269,7 @@ static void SnapBuildSnapIncRefcount(Snapshot snap);
|
||||
|
||||
static void SnapBuildDistributeNewCatalogSnapshot(SnapBuild *builder, XLogRecPtr lsn);
|
||||
|
||||
/* xlog reading helper functions for SnapBuildProcessRecord */
|
||||
/* xlog reading helper functions for SnapBuildProcessRunningXacts */
|
||||
static bool SnapBuildFindSnapshot(SnapBuild *builder, XLogRecPtr lsn, xl_running_xacts *running);
|
||||
static void SnapBuildWaitSnapshot(xl_running_xacts *running, TransactionId cutoff);
|
||||
|
||||
|
||||
@@ -1658,7 +1658,7 @@ ApplyWorkerMain(Datum main_arg)
|
||||
{
|
||||
char *syncslotname;
|
||||
|
||||
/* This is table synchroniation worker, call initial sync. */
|
||||
/* This is table synchronization worker, call initial sync. */
|
||||
syncslotname = LogicalRepSyncTableStart(&origin_startpos);
|
||||
|
||||
/* The slot name needs to be allocated in permanent memory context. */
|
||||
|
||||
@@ -108,7 +108,7 @@ static void CreateSlotOnDisk(ReplicationSlot *slot);
|
||||
static void SaveSlotToPath(ReplicationSlot *slot, const char *path, int elevel);
|
||||
|
||||
/*
|
||||
* Report shared-memory space needed by ReplicationSlotShmemInit.
|
||||
* Report shared-memory space needed by ReplicationSlotsShmemInit.
|
||||
*/
|
||||
Size
|
||||
ReplicationSlotsShmemSize(void)
|
||||
@@ -298,7 +298,7 @@ ReplicationSlotCreate(const char *name, bool db_specific,
|
||||
* We need to briefly prevent any other backend from iterating over the
|
||||
* slots while we flip the in_use flag. We also need to set the active
|
||||
* flag while holding the ControlLock as otherwise a concurrent
|
||||
* SlotAcquire() could acquire the slot as well.
|
||||
* ReplicationSlotAcquire() could acquire the slot as well.
|
||||
*/
|
||||
LWLockAcquire(ReplicationSlotControlLock, LW_EXCLUSIVE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user