| 1423 | } |
| 1424 | |
| 1425 | bool thd_prepare_connection(THD *thd) |
| 1426 | { |
| 1427 | bool rc; |
| 1428 | lex_start(thd); |
| 1429 | rc= login_connection(thd); |
| 1430 | if (rc) |
| 1431 | return rc; |
| 1432 | |
| 1433 | MYSQL_CONNECTION_START(thd->thread_id, &thd->security_ctx->priv_user[0], |
| 1434 | (char *) thd->security_ctx->host_or_ip); |
| 1435 | |
| 1436 | prepare_new_connection_state(thd); |
| 1437 | #ifdef WITH_WSREP |
| 1438 | thd->wsrep_client_thread= true; |
| 1439 | wsrep_open(thd); |
| 1440 | #endif /* WITH_WSREP */ |
| 1441 | return FALSE; |
| 1442 | } |
| 1443 | |
| 1444 | bool thd_is_connection_alive(THD *thd) |
| 1445 | { |
no test coverage detected