summaryrefslogtreecommitdiff
path: root/sql/wsrep_dummy.cc
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2019-10-29 13:11:34 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2019-10-30 10:14:56 +0200
commit36a969437845ce9f47a9e6d91514ddc7e00ca83a (patch)
tree847bffee755a4017242e5ca576b78c5fc3d2018d /sql/wsrep_dummy.cc
parent44b0c8697135be4139c4431bbf02fbf4433e058f (diff)
downloadmariadb-git-36a969437845ce9f47a9e6d91514ddc7e00ca83a.tar.gz
MDEV-18562 [ERROR] InnoDB: WSREP: referenced FK check fail: Lock wait index
Lock wait can happen on secondary index when doing FK checks for wsrep. We should just return error to upper layer and applier will retry operation when needed.
Diffstat (limited to 'sql/wsrep_dummy.cc')
-rw-r--r--sql/wsrep_dummy.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/wsrep_dummy.cc b/sql/wsrep_dummy.cc
index 2d0a8bcdfa9..b98dd1e5790 100644
--- a/sql/wsrep_dummy.cc
+++ b/sql/wsrep_dummy.cc
@@ -101,8 +101,8 @@ enum wsrep_conflict_state wsrep_thd_get_conflict_state(THD *)
my_bool wsrep_thd_is_wsrep(THD *)
{ return 0; }
-char *wsrep_thd_query(THD *)
-{ return 0; }
+const char *wsrep_thd_query(THD *)
+{ return "NULL"; }
enum wsrep_query_state wsrep_thd_query_state(THD *)
{ return QUERY_IDLE; }