Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6436098

Browse files
committed
Minor sync rep corrections.
Fujii Masao, with a bit of additional wordsmithing by me.
1 parentd16e290 commit6436098

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 wakewhole queue, orjust 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,justwakeup 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
externboolsync_rep_mode;
32-
externintsync_rep_timeout;
3332
externchar*SyncRepStandbyNames;
3433

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

4544
/* called by various procs */
4645
externintSyncRepWakeQueue(boolall);
47-
constchar*assign_synchronous_standby_names(constchar*newval,booldoit,GucSourcesource);
46+
externconstchar*assign_synchronous_standby_names(constchar*newval,booldoit,GucSourcesource);
4847

4948
#endif/* _SYNCREP_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp