MCPcopy Create free account
hub / github.com/MariaDB/server / ha_create

Method ha_create

sql/handler.cc:6225–6244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6223*/
6224
6225int
6226handler::ha_create(const char *name, TABLE *form, HA_CREATE_INFO *info_arg)
6227{
6228 DBUG_ASSERT(m_lock_type == F_UNLCK);
6229 mark_trx_read_write();
6230 if ((info_arg->options & HA_LEX_CREATE_TMP_TABLE) &&
6231 current_thd->slave_thread)
6232 info_arg->options|= HA_LEX_CREATE_GLOBAL_TMP_TABLE;
6233 option_struct= info_arg->option_struct;
6234 int error= create(name, form, info_arg);
6235 if (!error &&
6236 !(info_arg->options & (HA_LEX_CREATE_TMP_TABLE | HA_CREATE_TMP_ALTER)) &&
6237 /*
6238 DO not notify if not main handler.
6239 So skip notifications for partitions.
6240 */
6241 form->file == this)
6242 mysql_audit_create_table(form);
6243 return error;
6244}
6245
6246
6247/**

Callers 4

createMethod · 0.80
prepare_new_partitionMethod · 0.80
wrapper_createMethod · 0.80

Calls 2

createFunction · 0.85
mysql_audit_create_tableFunction · 0.85

Tested by

no test coverage detected