1 /* Copyright (C) 2014, 2021, MariaDB
2 
3    This program is free software; you can redistribute it and/or modify
4    it under the terms of the GNU General Public License as published by
5    the Free Software Foundation; version 2 of the License.
6 
7    This program is distributed in the hope that it will be useful,
8    but WITHOUT ANY WARRANTY; without even the implied warranty of
9    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10    GNU General Public License for more details.
11 
12    You should have received a copy of the GNU General Public License along
13    with this program; if not, write to the Free Software Foundation, Inc.,
14    51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA. */
15 
16 #include "mariadb.h"
17 #include <sql_class.h>
18 #include <mysql/service_wsrep.h>
19 
wsrep_thd_is_BF(const THD *,my_bool)20 my_bool wsrep_thd_is_BF(const THD *, my_bool)
21 { return 0; }
22 
wsrep_is_wsrep_xid(const void * xid)23 int wsrep_is_wsrep_xid(const void* xid)
24 { return 0; }
25 
wsrep_xid_seqno(const XID * x)26 long long wsrep_xid_seqno(const XID* x)
27 { return -1; }
28 
wsrep_xid_uuid(const XID *)29 const unsigned char* wsrep_xid_uuid(const XID*)
30 {
31     static const unsigned char uuid[16]= {0};
32     return uuid;
33 }
34 
wsrep_prepare_key_for_innodb(THD * thd,const uchar *,size_t,const uchar *,size_t,struct wsrep_buf *,size_t *)35 bool wsrep_prepare_key_for_innodb(THD* thd, const uchar*, size_t, const uchar*, size_t, struct wsrep_buf*, size_t*)
36 { return 1; }
37 
wsrep_prepare_key(const uchar *,size_t,const uchar *,size_t,struct wsrep_buf *,size_t *)38 bool wsrep_prepare_key(const uchar*, size_t, const uchar*, size_t, struct wsrep_buf*, size_t*)
39 { return 0; }
40 
get_wsrep()41 struct wsrep *get_wsrep()
42 { return 0; }
43 
get_wsrep_recovery()44 my_bool get_wsrep_recovery()
45 { return 0; }
46 
wsrep_consistency_check(THD *)47 bool wsrep_consistency_check(THD *)
48 { return 0; }
49 
wsrep_lock_rollback()50 void wsrep_lock_rollback()
51 { }
52 
wsrep_on(const THD *)53 my_bool wsrep_on(const THD *)
54 { return 0; }
55 
wsrep_thd_LOCK(const THD *)56 void wsrep_thd_LOCK(const THD *)
57 { }
58 
wsrep_thd_UNLOCK(const THD *)59 void wsrep_thd_UNLOCK(const THD *)
60 { }
61 
wsrep_thd_kill_LOCK(const THD *)62 void wsrep_thd_kill_LOCK(const THD *)
63 { }
64 
wsrep_thd_kill_UNLOCK(const THD *)65 void wsrep_thd_kill_UNLOCK(const THD *)
66 { }
67 
wsrep_thd_conflict_state_str(THD *)68 const char *wsrep_thd_conflict_state_str(THD *)
69 { return 0; }
70 
wsrep_thd_exec_mode_str(THD *)71 const char *wsrep_thd_exec_mode_str(THD *)
72 { return NULL; }
73 
wsrep_thd_query(const THD *)74 const char *wsrep_thd_query(const THD *)
75 { return "NULL"; }
76 
wsrep_thd_query_state_str(THD *)77 const char *wsrep_thd_query_state_str(THD *)
78 { return 0; }
79 
wsrep_thd_retry_counter(const THD *)80 int wsrep_thd_retry_counter(const THD *)
81 { return 0; }
82 
wsrep_thd_ignore_table(THD *)83 bool wsrep_thd_ignore_table(THD *)
84 { return 0; }
85 
wsrep_thd_trx_seqno(const THD *)86 long long wsrep_thd_trx_seqno(const THD *)
87 { return -1; }
88 
wsrep_thd_is_aborting(const THD *)89 my_bool wsrep_thd_is_aborting(const THD *)
90 { return 0; }
91 
wsrep_set_data_home_dir(const char *)92 void wsrep_set_data_home_dir(const char *)
93 { }
94 
wsrep_thd_is_local(const THD *)95 my_bool wsrep_thd_is_local(const THD *)
96 { return 0; }
97 
wsrep_thd_self_abort(THD *)98 void wsrep_thd_self_abort(THD *)
99 { }
100 
wsrep_thd_append_key(THD *,const struct wsrep_key *,int,enum Wsrep_service_key_type)101 int wsrep_thd_append_key(THD *, const struct wsrep_key*, int, enum Wsrep_service_key_type)
102 { return 0; }
103 
wsrep_thd_client_state_str(const THD *)104 const char* wsrep_thd_client_state_str(const THD*)
105 { return 0; }
106 
wsrep_thd_client_mode_str(const THD *)107 const char* wsrep_thd_client_mode_str(const THD*)
108 { return 0; }
109 
wsrep_thd_transaction_state_str(const THD *)110 const char* wsrep_thd_transaction_state_str(const THD*)
111 { return 0; }
112 
wsrep_thd_transaction_id(const THD *)113 query_id_t wsrep_thd_transaction_id(const THD *)
114 { return 0; }
115 
wsrep_thd_bf_abort(THD *,THD *,my_bool)116 my_bool wsrep_thd_bf_abort(THD *, THD *, my_bool)
117 { return 0; }
118 
wsrep_thd_order_before(const THD *,const THD *)119 my_bool wsrep_thd_order_before(const THD*, const THD *)
120 { return 0; }
121 
wsrep_handle_SR_rollback(THD *,THD *)122 void wsrep_handle_SR_rollback(THD*, THD*)
123 { }
124 
wsrep_thd_skip_locking(const THD *)125 my_bool wsrep_thd_skip_locking(const THD*)
126 { return 0;}
127 
wsrep_get_sr_table_name()128 const char* wsrep_get_sr_table_name()
129 { return 0; }
130 
wsrep_get_debug()131 my_bool wsrep_get_debug()
132 { return 0;}
133 
wsrep_commit_ordered(THD *)134 void wsrep_commit_ordered(THD* )
135 { }
136 
wsrep_log(void (*)(const char *,...),const char *,...)137 void wsrep_log(void (*)(const char *, ...), const char *, ...)
138 {
139 }
140 
wsrep_thd_is_applying(const THD *)141 my_bool wsrep_thd_is_applying(const THD*)
142 { return 0;}
143 
wsrep_thd_set_wsrep_aborter(THD *,THD *)144 bool wsrep_thd_set_wsrep_aborter(THD*, THD*)
145 { return 0;}
146 
wsrep_report_bf_lock_wait(const THD *,unsigned long long)147 void wsrep_report_bf_lock_wait(const THD*,
148                                unsigned long long)
149 {}
150 
wsrep_thd_set_PA_unsafe(THD *)151 void wsrep_thd_set_PA_unsafe(THD*)
152 {}
153 
154