summaryrefslogtreecommitdiff
path: root/storage/spider/spd_include.h
diff options
context:
space:
mode:
authorJacob Mathew <jacob.mathew@mariadb.com>2018-04-30 19:44:02 -0700
committerJacob Mathew <jacob.mathew@mariadb.com>2018-04-30 19:44:02 -0700
commit8fdeb079b92871f1274d5f8d9c6463fd09c9161f (patch)
tree1b36a5550c95008a8360b482453242f238a6ab14 /storage/spider/spd_include.h
parentbcc26dce3a0335662ed43ff198921d9c34d6fc14 (diff)
downloadmariadb-git-8fdeb079b92871f1274d5f8d9c6463fd09c9161f.tar.gz
MDEV-15712: If remote server used by Spider table is unavailable, some operations hang for a long time
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. Cherry-Picked: Commit 6ee6933 on branch bb-10.3-MDEV-15712
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 37d9db3ba57..f98dfc112e9 100644
--- a/storage/spider/spd_include.h
+++ b/storage/spider/spd_include.h
@@ -449,6 +449,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;