Skip to content

Commit 178abf2

Browse files
committed
Merge branch 'PGPROEE9_6_MULTIMASTER' into PGPROEE9_6
2 parents 8ec4070 + def159b commit 178abf2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/mmts/multimaster.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2271,7 +2271,9 @@ void MtmRefreshClusterStatus()
22712271
timestamp_t now = MtmGetSystemTime();
22722272
for (i = 0, mask = disabled; mask != 0; i++, mask >>= 1) {
22732273
if (mask & 1) {
2274-
if (Mtm->nodes[i].lastStatusChangeTime + MSEC_TO_USEC(MtmNodeDisableDelay) < now) {
2274+
if ((i+1 != MtmNodeId || Mtm->status == MTM_ONLINE)
2275+
&& Mtm->nodes[i].lastStatusChangeTime + MSEC_TO_USEC(MtmNodeDisableDelay) < now)
2276+
{
22752277
MtmDisableNode(i+1);
22762278
}
22772279
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy