24#ifndef DD_SCHEMA_INCLUDED
25#define DD_SCHEMA_INCLUDED
51 const bool default_encryption);
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
A granted metadata lock.
Definition: mdl.h:985
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
RAII based class to acquire and release schema meta data locks.
Definition: dd_schema.h:86
Schema_MDL_locker(THD *thd)
Definition: dd_schema.h:92
bool ensure_locked(const char *schema_name)
Make sure we have an IX meta data lock on the schema name.
Definition: dd_schema.cc:126
~Schema_MDL_locker()
Release the MDL ticket, if any, when the instance of this class leaves scope or is deleted.
Definition: dd_schema.cc:130
THD * m_thd
Definition: dd_schema.h:88
MDL_ticket * m_ticket
Definition: dd_schema.h:89
enum_mdl_duration
Duration of metadata lock.
Definition: mdl.h:333
static const CHARSET_INFO * charset_info
Definition: mysql.cc:247
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
bool schema_exists(THD *thd, const char *schema_name, bool *exists)
Check if given schema exists.
Definition: dd_schema.cc:47
bool mdl_lock_schema(THD *thd, const char *schema_name, enum_mdl_duration duration, MDL_ticket **ticket)
Acquire MDL on schema name.
Definition: dd_schema.cc:83
bool create_schema(THD *thd, const char *schema_name, const CHARSET_INFO *charset_info, bool default_encryption)
Create a schema record into dd.schemata.
Definition: dd_schema.cc:62
static int exists(node_address *name, node_list const *nodes, u_int with_uid)
Definition: node_list.cc:106
Definition: m_ctype.h:421