Commit df6dfef4 authored by Sachin's avatar Sachin

Compile failure fixed

parent 0ec13c0a
......@@ -5716,10 +5716,6 @@ mysql_execute_command(THD *thd)
DBUG_ASSERT(thd->rgi_slave);
Master_info *mi= thd->rgi_slave->rli->mi;
start_alter_info *info=NULL;
char temp[thd->query_length()+ 10];
strcpy(temp, thd->query());
char* alter_location= strcasestr(temp, "ALTER");
char send_query[thd->query_length() + 20];
mysql_mutex_lock(&mi->start_alter_list_lock);
List_iterator<start_alter_info> info_iterator(mi->start_alter_list);
while ((info= info_iterator++))
......@@ -5809,10 +5805,6 @@ mysql_execute_command(THD *thd)
DBUG_ASSERT(thd->rgi_slave);
Master_info *mi= thd->rgi_slave->rli->mi;
start_alter_info *info=NULL;
char temp[thd->query_length()+ 10];
strcpy(temp, thd->query());
char* alter_location= strcasestr(temp, "ALTER");
char send_query[thd->query_length() + 20];
mysql_mutex_lock(&mi->start_alter_list_lock);
List_iterator<start_alter_info> info_iterator(mi->start_alter_list);
while ((info= info_iterator++))
......
......@@ -9453,7 +9453,7 @@ static bool write_start_alter(THD *thd, bool* partial_alter, start_alter_info *i
}
else if (opt_binlog_split_alter)
{
char send_query[thd->query_length() + 20];
char *send_query= (char *)thd->alloc(thd->query_length() + 20);
thd->transaction.start_alter= true;
sprintf(send_query, "/*!100001 START %lld %s */",thd->thread_id, thd->query());
if (write_bin_log(thd, FALSE, send_query, strlen(send_query), true))
......@@ -9514,7 +9514,7 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
uint order_num, ORDER *order, bool ignore)
{
bool engine_changed;
char send_query[thd->query_length() + 20];
char *send_query= (char *)thd->alloc(thd->query_length() + 20);
bool partial_alter= false;
/*
Why on global memory ?- So that SQLCOM_COMMIT_ALTER/ROLLBACK should not get
......
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