1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-26 23:43:30 +03:00

Minor sync rep corrections.

Fujii Masao, with a bit of additional wordsmithing by me.
This commit is contained in:
Robert Haas
2011-03-10 14:57:02 -05:00
parent d16e290a8a
commit 6436098795
3 changed files with 5 additions and 6 deletions

View File

@@ -447,9 +447,9 @@ SyncRepGetStandbyPriority(void)
}
/*
* Walk queue from head setting setting the state of any backends that
* need to be woken, remove them from the queue and then wake them.
* Set all = true to wake whole queue, or just up to LSN.
* Walk queue from head. Set the state of any backends that need to be woken,
* remove them from the queue, and then wake them. Pass all = true to wake
* whole queue; otherwise, just wake up to the walsender's LSN.
*
* Must hold SyncRepLock.
*/

View File

@@ -157,7 +157,7 @@ SHMQueueNext(const SHM_QUEUE *queue, const SHM_QUEUE *curElem, Size linkOffset)
/*--------------------
* SHMQueuePrev -- Get the previous element from a queue
*
* Same as SHMQueueNext, just starting at tail and moving towards head
* Same as SHMQueueNext, just starting at tail and moving towards head.
* All other comments and usage applies.
*/
Pointer