Skip to content

Commit 02a7d51

Browse files
Fix synchronous_standby_names return value when there is no primary (#807)
1 parent 07052de commit 02a7d51

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/monitor/node_active_protocol.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2392,13 +2392,6 @@ synchronous_standby_names(PG_FUNCTION_ARGS)
23922392
/* when we have more than one node, fetch the primary */
23932393
AutoFailoverNode *primaryNode = GetPrimaryNodeInGroup(formationId, groupId);
23942394

2395-
if (primaryNode == NULL)
2396-
{
2397-
ereport(ERROR,
2398-
(errmsg("Couldn't find the primary node in formation \"%s\", "
2399-
"group %d", formationId, groupId)));
2400-
}
2401-
24022395
List *standbyNodesGroupList = AutoFailoverOtherNodesList(primaryNode);
24032396

24042397
/*

0 commit comments

Comments
 (0)