mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Put the logic to decide which synchronous standby is active into a function.
This avoids duplicating the code. Michael Paquier, reviewed by Simon Riggs and me
This commit is contained in:
@@ -50,6 +50,10 @@ extern void SyncRepUpdateSyncStandbysDefined(void);
|
||||
/* called by various procs */
|
||||
extern int SyncRepWakeQueue(bool all, int mode);
|
||||
|
||||
/* forward declaration to avoid pulling in walsender_private.h */
|
||||
struct WalSnd;
|
||||
extern struct WalSnd *SyncRepGetSynchronousStandby(void);
|
||||
|
||||
extern bool check_synchronous_standby_names(char **newval, void **extra, GucSource source);
|
||||
extern void assign_synchronous_commit(int newval, void *extra);
|
||||
|
||||
|
Reference in New Issue
Block a user