Content-Length: 261256 | pFad | http://github.com/postgrespro/postgres_cluster/commit/c1785c081bf156d8aec051923c6702b35ba710b5

E5 Do no peform harakiri (disable myslef) in recovery mode · postgrespro/postgres_cluster@c1785c0 · GitHub
Skip to content

Commit c1785c0

Browse files
knizhnikkelvich
authored andcommitted
Do no peform harakiri (disable myslef) in recovery mode
1 parent d94c9cf commit c1785c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/c1785c081bf156d8aec051923c6702b35ba710b5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy