| 6223 | */ |
| 6224 | |
| 6225 | int |
| 6226 | handler::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 | /** |
no test coverage detected