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

Function thd_getspecific

sql/sql_plugin.cc:4513–4520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4511}
4512
4513void* thd_getspecific(MYSQL_THD thd, MYSQL_THD_KEY_T key)
4514{
4515 DBUG_ASSERT(key != INVALID_THD_KEY);
4516 if (key == INVALID_THD_KEY || (!thd && !(thd= current_thd)))
4517 return 0;
4518
4519 return *(void**)(intern_sys_var_ptr(thd, key, true));
4520}
4521
4522int thd_setspecific(MYSQL_THD thd, MYSQL_THD_KEY_T key, void *value)
4523{

Callers

nothing calls this directly

Calls 1

intern_sys_var_ptrFunction · 0.85

Tested by

no test coverage detected