summaryrefslogtreecommitdiff
path: root/sql/wsrep_mysqld.cc
diff options
context:
space:
mode:
authorsjaakola <seppo.jaakola@iki.fi>2016-03-07 23:34:03 +0200
committerNirbhay Choubey <nirbhay@mariadb.com>2016-08-21 16:17:05 -0400
commitd246630d739717a58d9b1c33705ce7f1d8504b43 (patch)
treeeb6bd2e086019cfa11c976d99b665e0a899e9ff6 /sql/wsrep_mysqld.cc
parentf3444c4a436ecab23b535bb2ef24e02298aa7ae9 (diff)
downloadmariadb-git-d246630d739717a58d9b1c33705ce7f1d8504b43.tar.gz
Refs MW-252
- changed the condition when to do implicit desync as part of FTWRL to cover only case when node is PC and synced. Donor node has alreaydy desycned and other states mean that node is not in cluster, so desync is not even possible.
Diffstat (limited to 'sql/wsrep_mysqld.cc')
-rw-r--r--sql/wsrep_mysqld.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc
index 734406080e9..e392aef32eb 100644
--- a/sql/wsrep_mysqld.cc
+++ b/sql/wsrep_mysqld.cc
@@ -1592,3 +1592,7 @@ bool wsrep_node_is_donor()
{
return (WSREP_ON) ? (local_status.get() == 2) : false;
}
+bool wsrep_node_is_synced()
+{
+ return (WSREP_ON) ? (local_status.get() == 4) : false;
+}