mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge mysql.com:/home/hf/work/embt/my50-embt
into mysql.com:/home/hf/work/embt/my51-embt
This commit is contained in:
@ -584,6 +584,7 @@ void *create_embedded_thd(int client_flag)
|
||||
thd->set_time();
|
||||
thd->init_for_queries();
|
||||
thd->client_capabilities= client_flag;
|
||||
thd->real_id= (pthread_t) thd;
|
||||
|
||||
thd->db= NULL;
|
||||
thd->db_length= 0;
|
||||
@ -769,6 +770,8 @@ MYSQL_DATA *THD::alloc_new_dataset()
|
||||
|
||||
static void write_eof_packet(THD *thd)
|
||||
{
|
||||
if (!thd->mysql) // bootstrap file handling
|
||||
return;
|
||||
/*
|
||||
The following test should never be true, but it's better to do it
|
||||
because if 'is_fatal_error' is set the server is not going to execute
|
||||
@ -1028,6 +1031,9 @@ void Protocol_simple::prepare_for_resend()
|
||||
MYSQL_DATA *data= thd->cur_data;
|
||||
DBUG_ENTER("send_data");
|
||||
|
||||
if (!thd->mysql) // bootstrap file handling
|
||||
DBUG_VOID_RETURN;
|
||||
|
||||
data->rows++;
|
||||
if (!(cur= (MYSQL_ROWS *)alloc_root(alloc, sizeof(MYSQL_ROWS)+(field_count + 1) * sizeof(char *))))
|
||||
{
|
||||
|
Reference in New Issue
Block a user