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

Method value_ptr

sql/set_var.cc:282–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282const uchar *sys_var::value_ptr(THD *thd, enum_var_type type,
283 const LEX_CSTRING *base) const
284{
285 DBUG_ASSERT(base);
286 if (type == OPT_GLOBAL || scope() == GLOBAL)
287 {
288 mysql_mutex_assert_owner(&LOCK_global_system_variables);
289 AutoRLock lock(guard);
290 return global_value_ptr(thd, base);
291 }
292 else if (type == SHOW_OPT_SESSION_NO_LOCK)
293 return session_no_lock_value_ptr(thd, base);
294 else
295 return session_value_ptr(thd, base);
296}
297
298bool sys_var::set_default(THD *thd, set_var* var)
299{

Callers 4

fix_length_and_decMethod · 0.80
get_one_variableFunction · 0.80
store_varFunction · 0.80
initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected