MCPcopy Create free account
hub / github.com/MariaDB/server / thd_prepare_connection

Function thd_prepare_connection

sql/sql_connect.cc:1425–1442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1423}
1424
1425bool 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
1444bool thd_is_connection_alive(THD *thd)
1445{

Callers 2

do_handle_one_connectionFunction · 0.85

Calls 4

lex_startFunction · 0.85
login_connectionFunction · 0.85
wsrep_openFunction · 0.85

Tested by

no test coverage detected