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

Commite37c109

Browse files
committed
Make SyncRepWakeQueue to a static function
It is only used in src/backend/replication/syncrep.c.Back-patch to all supported branches except 9.1 which declares thefunction as static.
1 parent3fbfd5d commite37c109

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎src/backend/replication/syncrep.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ static intSyncRepWaitMode = SYNC_REP_NO_WAIT;
6969

7070
staticvoidSyncRepQueueInsert(intmode);
7171
staticvoidSyncRepCancelWait(void);
72+
staticintSyncRepWakeQueue(boolall,intmode);
7273

7374
staticintSyncRepGetStandbyPriority(void);
7475

@@ -529,7 +530,7 @@ SyncRepGetStandbyPriority(void)
529530
*
530531
* Must hold SyncRepLock.
531532
*/
532-
int
533+
staticint
533534
SyncRepWakeQueue(boolall,intmode)
534535
{
535536
volatileWalSndCtlData*walsndctl=WalSndCtl;

‎src/include/replication/syncrep.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ extern void SyncRepReleaseWaiters(void);
4747
/* called by checkpointer */
4848
externvoidSyncRepUpdateSyncStandbysDefined(void);
4949

50-
/* called by various procs */
51-
externintSyncRepWakeQueue(boolall,intmode);
52-
5350
externboolcheck_synchronous_standby_names(char**newval,void**extra,GucSourcesource);
5451
externvoidassign_synchronous_commit(intnewval,void*extra);
5552

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp