mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +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:
@@ -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