64 const char *db,
const char *
name);
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
std::unordered_set, but with my_malloc, so that you can track the memory used using PSI memory keys.
Definition: map_helpers.h:167
static MEM_ROOT mem_root
Definition: client_plugin.cc:109
void mysql_unlock_read_tables(THD *thd, MYSQL_LOCK *sql_lock)
unlock all tables locked for read.
Definition: lock.cc:434
void mysql_unlock_tables(THD *thd, MYSQL_LOCK *sql_lock)
Definition: lock.cc:409
bool acquire_shared_global_read_lock(THD *thd, unsigned long lock_wait_timeout)
Acquire protection against the global read lock.
Definition: lock.cc:1012
MYSQL_LOCK * mysql_lock_merge(MYSQL_LOCK *a, MYSQL_LOCK *b)
Definition: lock.cc:566
bool lock_object_name(THD *thd, MDL_key::enum_mdl_namespace mdl_type, const char *db, const char *name)
Obtain an exclusive metadata lock on an object name.
Definition: lock.cc:846
MYSQL_LOCK * mysql_lock_tables(THD *thd, TABLE **table, size_t count, uint flags)
Lock tables.
Definition: lock.cc:315
bool lock_schema_name(THD *thd, const char *db)
Obtain an exclusive metadata lock on a schema name.
Definition: lock.cc:738
bool lock_tablespace_names(THD *thd, Tablespace_hash_set *tablespace_set, ulong lock_wait_timeout, MEM_ROOT *mem_root)
Acquire IX MDL lock each tablespace name from the given set.
Definition: lock.cc:794
void mysql_lock_abort_for_thread(THD *thd, TABLE *table)
Abort one thread / table combination.
Definition: lock.cc:553
void mysql_lock_remove(THD *thd, MYSQL_LOCK *locked, TABLE *table)
Try to find the table in the list of locked tables.
Definition: lock.cc:491
void mysql_unlock_some_tables(THD *thd, TABLE **table, uint count)
Unlock some of the tables locked by mysql_lock_tables.
Definition: lock.cc:424
static int flags[50]
Definition: hp_test1.cc:39
malloc_unordered_set< std::string > Tablespace_hash_set
Definition: lock.h:56
static int count
Definition: myisam_ftdump.cc:42
case opt name
Definition: sslopt-case.h:32
enum_mdl_namespace
Object namespaces.
Definition: mdl.h:399
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:82
THR_LOCK_DATA ** locks
Definition: lock.h:41
uint table_count
Definition: lock.h:40
TABLE ** table
Definition: lock.h:39
uint lock_count
Definition: lock.h:40
Definition: thr_lock.h:123
unsigned int uint
Definition: uca9-dump.cc:74