mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge MariaDB-10.0.7 revision 3961.
This commit is contained in:
@ -1758,13 +1758,8 @@ int store_create_info(THD *thd, TABLE_LIST *table_list, String *packet,
|
||||
table->field[key_part->fieldnr-1]->key_length() &&
|
||||
!(key_info->flags & (HA_FULLTEXT | HA_SPATIAL))))
|
||||
{
|
||||
char *end;
|
||||
buff[0] = '(';
|
||||
end= int10_to_str((long) key_part->length /
|
||||
key_part->field->charset()->mbmaxlen,
|
||||
buff + 1,10);
|
||||
*end++ = ')';
|
||||
packet->append(buff,(uint) (end-buff));
|
||||
packet->append_parenthesized((long) key_part->length /
|
||||
key_part->field->charset()->mbmaxlen);
|
||||
}
|
||||
}
|
||||
packet->append(')');
|
||||
@ -1962,7 +1957,8 @@ int store_create_info(THD *thd, TABLE_LIST *table_list, String *packet,
|
||||
&part_syntax_len,
|
||||
FALSE,
|
||||
show_table_options,
|
||||
NULL, NULL)))
|
||||
NULL, NULL,
|
||||
comment_start.c_ptr())))
|
||||
{
|
||||
packet->append(comment_start);
|
||||
if (packet->append(part_syntax, part_syntax_len) ||
|
||||
@ -2620,7 +2616,7 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
|
||||
{
|
||||
Security_context *tmp_sctx= tmp->security_ctx;
|
||||
struct st_my_thread_var *mysys_var;
|
||||
const char *val;
|
||||
const char *val, *db;
|
||||
ulonglong max_counter;
|
||||
|
||||
if ((!tmp->vio_ok() && !tmp->system_thread) ||
|
||||
@ -2647,13 +2643,13 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
|
||||
table->field[2]->store(tmp_sctx->host_or_ip,
|
||||
strlen(tmp_sctx->host_or_ip), cs);
|
||||
/* DB */
|
||||
if (tmp->db)
|
||||
mysql_mutex_lock(&tmp->LOCK_thd_data);
|
||||
if ((db= tmp->db))
|
||||
{
|
||||
table->field[3]->store(tmp->db, strlen(tmp->db), cs);
|
||||
table->field[3]->store(db, strlen(db), cs);
|
||||
table->field[3]->set_notnull();
|
||||
}
|
||||
|
||||
mysql_mutex_lock(&tmp->LOCK_thd_data);
|
||||
if ((mysys_var= tmp->mysys_var))
|
||||
mysql_mutex_lock(&mysys_var->mutex);
|
||||
/* COMMAND */
|
||||
|
Reference in New Issue
Block a user