We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe8013 commit 946a0e3Copy full SHA for 946a0e3
src/multimaster.c
@@ -2043,6 +2043,7 @@ gather(nodemask_t participants,
2043
int *sendconn_cnt, uint64 gen_num)
2044
{
2045
time_t start;
2046
+ bool to = false;
2047
*msg_count = 0;
2048
2049
start = time(NULL);
@@ -2059,8 +2060,9 @@ gather(nodemask_t participants,
2059
2060
2061
current = time(NULL);
2062
- if (current - start > 5) {
2063
+ if (current - start > 3) {
2064
elog(LOG, "----> gather timeout");
2065
+ to = true;
2066
// return false;
2067
}
2068
@@ -2117,7 +2119,8 @@ gather(nodemask_t participants,
2117
2119
2118
2120
2121
- //elog(LOG, "----> gather 2");
2122
+ if (to)
2123
+ elog(LOG, "----> gather end");
2124
return true;
2125
2126
0 commit comments