summaryrefslogtreecommitdiff
path: root/sql/wsrep_mysqld.h
diff options
context:
space:
mode:
authorAlexey Yurchenko <ayurchen@galeracluster.com>2017-06-19 17:23:02 +0700
committerJan Lindström <jan.lindstrom@mariadb.com>2017-10-19 09:34:09 +0300
commit86d31ce9f141d34fffcf7f355d4c0e6e54077eb3 (patch)
treef67f470ef746d475691f322e6a2992250f56338f /sql/wsrep_mysqld.h
parent8da6b4ef5260179b1577843517c46e4b95a9e911 (diff)
downloadmariadb-git-86d31ce9f141d34fffcf7f355d4c0e6e54077eb3.tar.gz
MW-384 protect access to wsrep_ready variable with mutex
Diffstat (limited to 'sql/wsrep_mysqld.h')
-rw-r--r--sql/wsrep_mysqld.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/wsrep_mysqld.h b/sql/wsrep_mysqld.h
index bb33d2f1069..56e3baae7cc 100644
--- a/sql/wsrep_mysqld.h
+++ b/sql/wsrep_mysqld.h
@@ -115,7 +115,6 @@ enum enum_wsrep_sync_wait {
// MySQL status variables
extern my_bool wsrep_connected;
-extern my_bool wsrep_ready;
extern const char* wsrep_cluster_state_uuid;
extern long long wsrep_cluster_conf_id;
extern const char* wsrep_cluster_status;
@@ -130,6 +129,7 @@ extern const char* wsrep_provider_vendor;
extern my_bool wsrep_inited; // whether wsrep is initialized ?
int wsrep_show_status(THD *thd, SHOW_VAR *var, char *buff);
+int wsrep_show_ready(THD *thd, SHOW_VAR *var, char *buff);
void wsrep_free_status(THD *thd);
/* Filters out --wsrep-new-cluster oprtion from argv[]
@@ -245,6 +245,7 @@ extern wsrep_seqno_t wsrep_locked_seqno;
#define WSREP_PROVIDER_EXISTS \
(wsrep_provider && strncasecmp(wsrep_provider, WSREP_NONE, FN_REFLEN))
+extern my_bool wsrep_ready_get();
extern void wsrep_ready_wait();
enum wsrep_trx_status {