Commit 7f9fcfe0 authored by Nirbhay Choubey's avatar Nirbhay Choubey

Code cleanup (wsrep patch).

parent 47e4e5df
......@@ -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 @@ bool wsrep_create_like_table(THD* thd, TABLE_LIST* table,
}
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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment