mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
More failover fixes
This commit is contained in:
4
repmgr.c
4
repmgr.c
@@ -80,6 +80,8 @@ PG_FUNCTION_INFO_V1(notify_follow_primary);
|
||||
Datum get_new_primary(PG_FUNCTION_ARGS);
|
||||
PG_FUNCTION_INFO_V1(get_new_primary);
|
||||
|
||||
//Datum set_new_primary(PG_FUNCTION_ARGS);
|
||||
//PG_FUNCTION_INFO_V1(set_new_primary);
|
||||
|
||||
/*
|
||||
* Module load callback
|
||||
@@ -286,6 +288,8 @@ notify_follow_primary(PG_FUNCTION_ARGS)
|
||||
{
|
||||
int primary_node_id = PG_GETARG_INT32(0);
|
||||
|
||||
elog(INFO, "received notification to follow node %i", primary_node_id);
|
||||
|
||||
LWLockAcquire(shared_state->lock, LW_SHARED);
|
||||
|
||||
/* Explicitly set the primary node id */
|
||||
|
||||
Reference in New Issue
Block a user