summaryrefslogtreecommitdiff
path: root/storage/spider/spd_include.h
diff options
context:
space:
mode:
authorJacob Mathew <jacob.mathew@mariadb.com>2018-04-23 22:00:27 -0700
committerJacob Mathew <jacob.mathew@mariadb.com>2018-04-23 22:00:27 -0700
commit6ee6933a374e3210ae64de8e6dc36817b8329084 (patch)
tree60526677094e876fa6b56f7d9c2d8c249db97a81 /storage/spider/spd_include.h
parent461de7edeaef80693e38969a4d7d3f5ae9bb5e63 (diff)
downloadmariadb-git-6ee6933a374e3210ae64de8e6dc36817b8329084.tar.gz
MDEV-15712: If remote server used by Spider table is unavailable, some operations hang for a long timebb-10.3-MDEV-15712
When an attempt to connect to the remote server fails, Spider retries to connect to the remote server 1000 times or until the connection attempt succeeds. This is perceived as a hang if the remote server remains unavailable. I have introduced changes in Spider's table status handler to fix this problem. Author: Jacob Mathew. Reviewer: Kentoku Shiba.
Diffstat (limited to 'storage/spider/spd_include.h')
-rw-r--r--storage/spider/spd_include.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/spider/spd_include.h b/storage/spider/spd_include.h
index ca32facfa5d..bede60412e2 100644
--- a/storage/spider/spd_include.h
+++ b/storage/spider/spd_include.h
@@ -526,6 +526,9 @@ typedef struct st_spider_conn
st_spider_conn *bulk_access_next;
#endif
+ bool disable_connect_retry; /* TRUE if it is unnecessary to
+ retry to connect after a
+ connection error */
bool connect_error_with_message;
char connect_error_msg[MYSQL_ERRMSG_SIZE];
int connect_error;