Content-Length: 261776 | pFad | http://github.com/postgrespro/postgres_cluster/commit/22dacb80d32eee850f6a6ba47af320a969514aa7

D8 Call MtmOnNodeDisconnect in case of read error · postgrespro/postgres_cluster@22dacb8 · GitHub
Skip to content

Commit 22dacb8

Browse files
committed
Call MtmOnNodeDisconnect in case of read error
1 parent accef4c commit 22dacb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/mmts/arbiter.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,10 @@ static void MtmUnregisterSocket(int fd)
207207

208208
static void MtmDisconnect(int node)
209209
{
210-
close(sockets[node]);
211210
MtmUnregisterSocket(sockets[node]);
211+
close(sockets[node]);
212212
sockets[node] = -1;
213+
MtmOnNodeDisconnect(node+1);
213214
}
214215

215216
static bool MtmWriteSocket(int sd, void const* buf, int size)

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/22dacb80d32eee850f6a6ba47af320a969514aa7

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy