1
0
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:
vva@eagle.mysql.r18.ru
2004-02-04 21:35:20 +04:00
parent 6ecd67981a
commit 7769e5a677
4 changed files with 16 additions and 0 deletions

View File

@ -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);
}