Skip to content

Commit 6436098

Browse files
committed
Minor sync rep corrections.
Fujii Masao, with a bit of additional wordsmithing by me.
1 parent d16e290 commit 6436098

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/backend/replication/syncrep.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,9 @@ SyncRepGetStandbyPriority(void)
447447
}
448448

449449
/*
450-
* Walk queue from head setting setting the state of any backends that
451-
* need to be woken, remove them from the queue and then wake them.
452-
* Set all = true to wake whole queue, or just up to LSN.
450+
* Walk queue from head. Set the state of any backends that need to be woken,
451+
* remove them from the queue, and then wake them. Pass all = true to wake
452+
* whole queue; otherwise, just wake up to the walsender's LSN.
453453
*
454454
* Must hold SyncRepLock.
455455
*/

src/backend/storage/ipc/shmqueue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ SHMQueueNext(const SHM_QUEUE *queue, const SHM_QUEUE *curElem, Size linkOffset)
157157
/*--------------------
158158
* SHMQueuePrev -- Get the previous element from a queue
159159
*
160-
* Same as SHMQueueNext, just starting at tail and moving towards head
160+
* Same as SHMQueueNext, just starting at tail and moving towards head.
161161
* All other comments and usage applies.
162162
*/
163163
Pointer

src/include/replication/syncrep.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
/* user-settable parameters for synchronous replication */
3131
extern bool sync_rep_mode;
32-
extern int sync_rep_timeout;
3332
extern char *SyncRepStandbyNames;
3433

3534
/* called by user backend */
@@ -44,6 +43,6 @@ extern void SyncRepReleaseWaiters(void);
4443

4544
/* called by various procs */
4645
extern int SyncRepWakeQueue(bool all);
47-
const char *assign_synchronous_standby_names(const char *newval, bool doit, GucSource source);
46+
extern const char *assign_synchronous_standby_names(const char *newval, bool doit, GucSource source);
4847

4948
#endif /* _SYNCREP_H */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy