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

Commit56abebb

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 parent7cd5498 commit56abebb

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
@@ -68,6 +68,7 @@ static intSyncRepWaitMode = SYNC_REP_NO_WAIT;
6868

6969
staticvoidSyncRepQueueInsert(intmode);
7070
staticvoidSyncRepCancelWait(void);
71+
staticintSyncRepWakeQueue(boolall,intmode);
7172

7273
staticintSyncRepGetStandbyPriority(void);
7374

@@ -523,7 +524,7 @@ SyncRepGetStandbyPriority(void)
523524
*
524525
* Must hold SyncRepLock.
525526
*/
526-
int
527+
staticint
527528
SyncRepWakeQueue(boolall,intmode)
528529
{
529530
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