summaryrefslogtreecommitdiff
path: root/sql/wsrep_thd.cc
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@skysql.com>2014-06-19 18:48:20 -0400
committerNirbhay Choubey <nirbhay@skysql.com>2014-06-19 18:48:20 -0400
commit97779a2ef05d2141d2ade2f72f0900dbd9960751 (patch)
tree1f2eb2c003247b77d602af4a035a7dd6f7e27aea /sql/wsrep_thd.cc
parenta76a6601ecb63d452c89202d8ca7f11bf2e0194f (diff)
downloadmariadb-git-97779a2ef05d2141d2ade2f72f0900dbd9960751.tar.gz
bzr merge -r4091..4101 codership/5.6/
Diffstat (limited to 'sql/wsrep_thd.cc')
-rw-r--r--sql/wsrep_thd.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/sql/wsrep_thd.cc b/sql/wsrep_thd.cc
index 7d61af8d84e..b485daa2a9c 100644
--- a/sql/wsrep_thd.cc
+++ b/sql/wsrep_thd.cc
@@ -480,6 +480,29 @@ void wsrep_create_rollbacker()
}
}
+void wsrep_thd_set_PA_safe(void *thd_ptr, my_bool safe)
+{
+ if (thd_ptr)
+ {
+ THD* thd = (THD*)thd_ptr;
+ thd->wsrep_PA_safe = safe;
+ }
+}
+
+int wsrep_thd_conflict_state(void *thd_ptr, my_bool sync)
+{
+ int state = -1;
+ if (thd_ptr)
+ {
+ THD* thd = (THD*)thd_ptr;
+ if (sync) mysql_mutex_lock(&thd->LOCK_wsrep_thd);
+
+ state = thd->wsrep_conflict_state;
+ if (sync) mysql_mutex_unlock(&thd->LOCK_wsrep_thd);
+ }
+ return state;
+}
+
my_bool wsrep_thd_is_BF(void *thd_ptr, my_bool sync)
{
my_bool status = FALSE;