| 282 | */ |
| 283 | |
| 284 | bool |
| 285 | net_send_eof(THD *thd, uint server_status, uint statement_warn_count) |
| 286 | { |
| 287 | NET *net= &thd->net; |
| 288 | bool error= FALSE; |
| 289 | DBUG_ENTER("net_send_eof"); |
| 290 | /* Set to TRUE if no active vio, to work well in case of --init-file */ |
| 291 | if (net->vio != 0) |
| 292 | { |
| 293 | thd->get_stmt_da()->set_overwrite_status(true); |
| 294 | error= write_eof_packet(thd, net, server_status, statement_warn_count); |
| 295 | if (!error) |
| 296 | error= net_flush(net); |
| 297 | thd->get_stmt_da()->set_overwrite_status(false); |
| 298 | DBUG_PRINT("info", ("EOF sent, so no more error sending allowed")); |
| 299 | } |
| 300 | DBUG_RETURN(error); |
| 301 | } |
| 302 | |
| 303 | |
| 304 | /** |
no test coverage detected