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

Commit cce49da

Browse files
knizhnikkelvich
authored andcommitted
Call MtmOnNodeDisconnect in case of read error
1 parent 28f6f7d commit cce49da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)