mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
Code cleanup (wsrep patch).
This commit is contained in:
@@ -1260,7 +1260,7 @@ wsrep_alter_query_string(THD *thd, String *buf)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int wsrep_alter_event_query(THD *thd, uchar** buf, size_t* buf_len)
|
||||
static int wsrep_alter_event_query(THD *thd, uchar** buf, size_t* buf_len)
|
||||
{
|
||||
String log_query;
|
||||
|
||||
@@ -1356,6 +1356,10 @@ create_view_query(THD *thd, uchar** buf, size_t* buf_len)
|
||||
return wsrep_to_buf_helper(thd, buff.ptr(), buff.length(), buf, buf_len);
|
||||
}
|
||||
|
||||
/* Forward declarations. */
|
||||
static int wsrep_create_sp(THD *thd, uchar** buf, size_t* buf_len);
|
||||
static int wsrep_create_trigger_query(THD *thd, uchar** buf, size_t* buf_len);
|
||||
|
||||
/*
|
||||
returns:
|
||||
0: statement was replicated as TOI
|
||||
@@ -2167,7 +2171,7 @@ void wsrep_kill_mysql(THD *thd)
|
||||
}
|
||||
|
||||
|
||||
int wsrep_create_sp(THD *thd, uchar** buf, size_t* buf_len)
|
||||
static int wsrep_create_sp(THD *thd, uchar** buf, size_t* buf_len)
|
||||
{
|
||||
String log_query;
|
||||
sp_head *sp = thd->lex->sphead;
|
||||
@@ -2494,7 +2498,7 @@ error:
|
||||
}
|
||||
|
||||
|
||||
int wsrep_create_trigger_query(THD *thd, uchar** buf, size_t* buf_len)
|
||||
static int wsrep_create_trigger_query(THD *thd, uchar** buf, size_t* buf_len)
|
||||
{
|
||||
LEX *lex= thd->lex;
|
||||
String stmt_query;
|
||||
|
||||
@@ -280,10 +280,7 @@ void wsrep_to_isolation_end(THD *thd);
|
||||
void wsrep_cleanup_transaction(THD *thd);
|
||||
int wsrep_to_buf_helper(
|
||||
THD* thd, const char *query, uint query_len, uchar** buf, size_t* buf_len);
|
||||
int wsrep_create_sp(THD *thd, uchar** buf, size_t* buf_len);
|
||||
int wsrep_create_trigger_query(THD *thd, uchar** buf, size_t* buf_len);
|
||||
int wsrep_create_event_query(THD *thd, uchar** buf, size_t* buf_len);
|
||||
int wsrep_alter_event_query(THD *thd, uchar** buf, size_t* buf_len);
|
||||
|
||||
extern bool
|
||||
wsrep_grant_mdl_exception(MDL_context *requestor_ctx,
|
||||
@@ -304,14 +301,12 @@ void wsrep_close_applier_threads(int count);
|
||||
void wsrep_wait_appliers_close(THD *thd);
|
||||
void wsrep_kill_mysql(THD *thd);
|
||||
void wsrep_close_threads(THD *thd);
|
||||
int wsrep_create_sp(THD *thd, uchar** buf, size_t* buf_len);
|
||||
void wsrep_copy_query(THD *thd);
|
||||
bool wsrep_is_show_query(enum enum_sql_command command);
|
||||
void wsrep_replay_transaction(THD *thd);
|
||||
bool wsrep_create_like_table(THD* thd, TABLE_LIST* table,
|
||||
TABLE_LIST* src_table,
|
||||
HA_CREATE_INFO *create_info);
|
||||
int wsrep_create_trigger_query(THD *thd, uchar** buf, size_t* buf_len);
|
||||
|
||||
#else /* WITH_WSREP */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user