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

Commit656ea81

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 parenta4847fc commit656ea81

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

@@ -546,7 +547,7 @@ SyncRepGetStandbyPriority(void)
546547
*
547548
* Must hold SyncRepLock.
548549
*/
549-
int
550+
staticint
550551
SyncRepWakeQueue(boolall,intmode)
551552
{
552553
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
/* forward declaration to avoid pulling in walsender_private.h */
5451
structWalSnd;
5552
externstructWalSnd*SyncRepGetSynchronousStandby(void);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp