mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
added checking for bootstrap in select_send::send_data
(fixed bug #2526 "--init-file crashes MySQL if contains large select") Such checking usually works in send_ok, send_eof, but in this case large result causes interim flushing.
This commit is contained in:
@ -495,6 +495,8 @@ bool select_send::send_data(List<Item> &items)
|
||||
}
|
||||
}
|
||||
thd->sent_row_count++;
|
||||
if (thd->bootstrap)
|
||||
DBUG_RETURN(0);
|
||||
bool error=my_net_write(&thd->net,(char*) packet->ptr(),packet->length());
|
||||
DBUG_RETURN(error);
|
||||
}
|
||||
|
Reference in New Issue
Block a user