8000 Fix bug in handling connection errors · postgrespro/postgres_cluster@381c644 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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)
0