1#ifndef SYS_VARS_RESOURCE_MGR_INCLUDED
2#define SYS_VARS_RESOURCE_MGR_INCLUDED
82 bool init(
char **var);
88 bool update(
char **var,
char *val,
size_t val_len);
Definition: sys_vars_resource_mgr.h:70
bool init(char **var)
Allocates memory for Sys_var_charptr session variable during session initialization.
Definition: sys_vars_resource_mgr.cc:47
void deinit()
Frees the memory allocated for Sys_var_charptr session variables.
Definition: sys_vars_resource_mgr.cc:111
malloc_unordered_map< char **, unique_ptr_my_free< char > > m_sysvar_string_alloc_hash
Definition: sys_vars_resource_mgr.h:74
bool update(char **var, char *val, size_t val_len)
Frees the old allocated memory, memdup()'s the given val to a new memory address & updates the sessio...
Definition: sys_vars_resource_mgr.cc:73
void claim_memory_ownership(bool claim)
Definition: sys_vars_resource_mgr.cc:100
std::unordered_map, but with my_malloc, so that you can track the memory used using PSI memory keys.
Definition: map_helpers.h:148
PSI_memory_key key_memory_THD_Session_sysvar_resource_manager
Definition: psi_memory_key.cc:85