Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 574ee56

Browse files
committed
Fix wrong quorum calculation when walsender restarts before we can detect failure with heartbeats
1 parent 7c6801e commit 574ee56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

state.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ MtmStateProcessNeighborEvent(int node_id, MtmNeighborEvent ev) // XXXX camelcase
247247
*/
248248
if (!BIT_CHECK(Mtm->disabledNodeMask, node_id-1))
249249
{
250-
BIT_SET(Mtm->disabledNodeMask, node_id-1);
250+
MTM_LOG1("[WARN] node %d started recovery, but it wasn't disabled", node_id);
251+
MtmOnNodeDisconnect(node_id-1);
251252
}
252-
// BIT_SET(Mtm->pglogicalSenderMask, node_id - 1);
253253
break;
254254

255255
case MTM_NEIGHBOR_WAL_SENDER_START_RECOVERED:

0 commit comments

Comments
 (0)