| 280 | } |
| 281 | |
| 282 | const 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 | |
| 298 | bool sys_var::set_default(THD *thd, set_var* var) |
| 299 | { |
no outgoing calls
no test coverage detected