| 488 | */ |
| 489 | |
| 490 | sys_var *intern_find_sys_var(const char *str, uint length) |
| 491 | { |
| 492 | sys_var *var; |
| 493 | |
| 494 | /* |
| 495 | This function is only called from the sql_plugin.cc. |
| 496 | A lock on LOCK_system_variable_hash should be held |
| 497 | */ |
| 498 | var= (sys_var*) my_hash_search(&system_variable_hash, |
| 499 | (uchar*) str, length ? length : strlen(str)); |
| 500 | |
| 501 | /* Don't show non-visible variables. */ |
| 502 | if (var && var->not_visible()) |
| 503 | return NULL; |
| 504 | |
| 505 | return var; |
| 506 | } |
| 507 | |
| 508 | /** |
| 509 | Update variable |
no test coverage detected