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

Commit 381c644

Browse files
committed
Fix bug in handling connection errors
1 parent 22dacb8 commit 381c644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/mmts/arbiter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ static void MtmTransReceiver(Datum arg)
658658
i = events[j].data.u32;
659659
if (events[j].events & EPOLLERR) {
660660
elog(WARNING, "Arbiter lost connection with node %d", i+1);
661-
MtmDisconnect(j);
661+
MtmDisconnect(i);
662662
}
663663
else if (events[j].events & EPOLLIN)
664664
#else

0 commit comments

Comments
 (0)