Skip to content

Commit 946a0e3

Browse files
author
Andrei Krichinin
committed
extra logs for gather
1 parent 5fe8013 commit 946a0e3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/multimaster.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2043,6 +2043,7 @@ gather(nodemask_t participants,
20432043
int *sendconn_cnt, uint64 gen_num)
20442044
{
20452045
time_t start;
2046+
bool to = false;
20462047
*msg_count = 0;
20472048

20482049
start = time(NULL);
@@ -2059,8 +2060,9 @@ gather(nodemask_t participants,
20592060

20602061
current = time(NULL);
20612062

2062-
if (current - start > 5) {
2063+
if (current - start > 3) {
20632064
elog(LOG, "----> gather timeout");
2065+
to = true;
20642066
// return false;
20652067
}
20662068

@@ -2117,7 +2119,8 @@ gather(nodemask_t participants,
21172119
}
21182120

21192121
}
2120-
//elog(LOG, "----> gather 2");
2122+
if (to)
2123+
elog(LOG, "----> gather end");
21212124
return true;
21222125
}
21232126

0 commit comments

Comments
 (0)