2014-09-27 22:29:10 +02:00
|
|
|
/* Copyright (C) 2014 SkySQL Ab.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; version 2 of the License.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
2019-05-11 21:19:05 +02:00
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA. */
|
2014-09-27 22:29:10 +02:00
|
|
|
|
2017-06-18 05:42:16 +02:00
|
|
|
#include "mariadb.h"
|
2014-09-27 22:29:10 +02:00
|
|
|
#include <sql_class.h>
|
|
|
|
#include <mysql/service_wsrep.h>
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
my_bool wsrep_thd_is_BF(const THD *, my_bool)
|
2014-09-27 22:29:10 +02:00
|
|
|
{ return 0; }
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
int wsrep_is_wsrep_xid(const void* xid)
|
2014-09-27 22:29:10 +02:00
|
|
|
{ return 0; }
|
|
|
|
|
2018-03-21 11:02:09 +01:00
|
|
|
long long wsrep_xid_seqno(const XID* x)
|
|
|
|
{ return -1; }
|
|
|
|
|
|
|
|
const unsigned char* wsrep_xid_uuid(const XID*)
|
|
|
|
{
|
2019-01-23 12:30:00 +01:00
|
|
|
static const unsigned char uuid[16]= {0};
|
2018-03-21 11:02:09 +01:00
|
|
|
return uuid;
|
|
|
|
}
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
bool wsrep_prepare_key_for_innodb(THD* thd, const uchar*, size_t, const uchar*, size_t, struct wsrep_buf*, size_t*)
|
|
|
|
{ return 1; }
|
|
|
|
|
2014-09-27 22:29:10 +02:00
|
|
|
bool wsrep_prepare_key(const uchar*, size_t, const uchar*, size_t, struct wsrep_buf*, size_t*)
|
|
|
|
{ return 0; }
|
|
|
|
|
|
|
|
struct wsrep *get_wsrep()
|
|
|
|
{ return 0; }
|
|
|
|
|
2015-07-14 22:05:29 +02:00
|
|
|
my_bool get_wsrep_recovery()
|
|
|
|
{ return 0; }
|
|
|
|
|
2014-09-27 22:29:10 +02:00
|
|
|
bool wsrep_consistency_check(THD *)
|
|
|
|
{ return 0; }
|
|
|
|
|
|
|
|
void wsrep_lock_rollback()
|
|
|
|
{ }
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
my_bool wsrep_on(const THD *)
|
2014-09-27 22:29:10 +02:00
|
|
|
{ return 0; }
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
void wsrep_thd_LOCK(const THD *)
|
2014-09-27 22:29:10 +02:00
|
|
|
{ }
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
void wsrep_thd_UNLOCK(const THD *)
|
2014-09-27 22:29:10 +02:00
|
|
|
{ }
|
|
|
|
|
|
|
|
const char *wsrep_thd_conflict_state_str(THD *)
|
|
|
|
{ return 0; }
|
|
|
|
|
|
|
|
const char *wsrep_thd_exec_mode_str(THD *)
|
|
|
|
{ return NULL; }
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
const char *wsrep_thd_query(const THD *)
|
|
|
|
{ return 0; }
|
2014-09-27 22:29:10 +02:00
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
const char *wsrep_thd_query_state_str(THD *)
|
2014-09-27 22:29:10 +02:00
|
|
|
{ return 0; }
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
int wsrep_thd_retry_counter(const THD *)
|
2014-09-27 22:29:10 +02:00
|
|
|
{ return 0; }
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
bool wsrep_thd_ignore_table(THD *)
|
|
|
|
{ return 0; }
|
2014-09-27 22:29:10 +02:00
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
long long wsrep_thd_trx_seqno(const THD *)
|
|
|
|
{ return -1; }
|
|
|
|
|
|
|
|
my_bool wsrep_thd_is_aborting(const THD *)
|
2014-09-27 22:29:10 +02:00
|
|
|
{ return 0; }
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
void wsrep_set_data_home_dir(const char *)
|
|
|
|
{ }
|
|
|
|
|
|
|
|
my_bool wsrep_thd_is_local(const THD *)
|
2014-09-27 22:29:10 +02:00
|
|
|
{ return 0; }
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
void wsrep_thd_self_abort(THD *)
|
2014-09-27 22:29:10 +02:00
|
|
|
{ }
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
int wsrep_thd_append_key(THD *, const struct wsrep_key*, int, enum Wsrep_service_key_type)
|
2015-12-22 10:32:33 +01:00
|
|
|
{ return 0; }
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
const char* wsrep_thd_client_state_str(const THD*)
|
|
|
|
{ return 0; }
|
2014-09-27 22:29:10 +02:00
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
const char* wsrep_thd_client_mode_str(const THD*)
|
2014-09-27 22:29:10 +02:00
|
|
|
{ return 0; }
|
|
|
|
|
2019-02-25 21:49:04 +01:00
|
|
|
void wsrep_thd_auto_increment_variables(THD *thd,
|
|
|
|
unsigned long long *offset,
|
|
|
|
unsigned long long *increment)
|
|
|
|
{
|
|
|
|
*offset= thd->variables.auto_increment_offset;
|
|
|
|
*increment= thd->variables.auto_increment_increment;
|
|
|
|
}
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
const char* wsrep_thd_transaction_state_str(const THD*)
|
2014-09-27 22:29:10 +02:00
|
|
|
{ return 0; }
|
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
query_id_t wsrep_thd_transaction_id(const THD *)
|
|
|
|
{ return 0; }
|
2018-09-03 10:27:36 +02:00
|
|
|
|
2019-01-23 12:30:00 +01:00
|
|
|
my_bool wsrep_thd_bf_abort(const THD *, THD *, my_bool)
|
|
|
|
{ return 0; }
|
|
|
|
|
|
|
|
my_bool wsrep_thd_order_before(const THD*, const THD *)
|
|
|
|
{ return 0; }
|
|
|
|
|
|
|
|
void wsrep_handle_SR_rollback(THD*, THD*)
|
2018-09-03 10:27:36 +02:00
|
|
|
{ }
|
2019-01-23 12:30:00 +01:00
|
|
|
|
|
|
|
my_bool wsrep_thd_skip_locking(const THD*)
|
|
|
|
{ return 0;}
|
|
|
|
|
|
|
|
const char* wsrep_get_sr_table_name()
|
|
|
|
{ return 0; }
|
|
|
|
|
|
|
|
my_bool wsrep_get_debug()
|
|
|
|
{ return 0;}
|
2019-03-15 06:09:13 +01:00
|
|
|
|
|
|
|
void wsrep_commit_ordered(THD* )
|
|
|
|
{ }
|
2019-04-10 10:19:38 +02:00
|
|
|
|
|
|
|
my_bool wsrep_thd_is_applying(const THD*)
|
|
|
|
{ return 0;}
|