Go to the source code of this file.
◆ create_internal_thd_ctx()
Wrapper of create_internal_thd() function, creating a temporary THD with the following differences compared to original code: 
- created THD does not have system_user flag set
 
- instead, THD has minimal privileges needed to set system variables
 
- a user name assigned, so the variables can be persisted with such THD
 
- Parameters
 - 
  
    | ctx | Security context smart pointer to be assigned.  | 
  
   
- Return values
 - 
  
  
 
 
 
◆ destroy_internal_thd_ctx()
Wrapper of destroy_internal_thd() function, safely destroying a temporary THD and its associated security context smart pointer. 
- Parameters
 - 
  
    | thd | Pointer to THD object to be destroyed.  | 
    | ctx | Security context smart pointer to be cleared.  |