mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge april.(none):/home/svoj/devel/bk/mysql-5.0-engines
into april.(none):/home/svoj/devel/mysql/BUG20256/mysql-5.0-push
This commit is contained in:
@ -1376,6 +1376,15 @@ int ha_delete_table(THD *thd, enum db_type table_type, const char *path,
|
||||
/****************************************************************************
|
||||
** General handler functions
|
||||
****************************************************************************/
|
||||
handler *handler::clone(MEM_ROOT *mem_root)
|
||||
{
|
||||
handler *new_handler= get_new_handler(table, mem_root, table->s->db_type);
|
||||
if (new_handler && !new_handler->ha_open(table->s->path, table->db_stat,
|
||||
HA_OPEN_IGNORE_IF_LOCKED))
|
||||
return new_handler;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Open database-handler. Try O_RDONLY if can't open as O_RDWR */
|
||||
/* Don't wait for locks if not HA_OPEN_WAIT_IF_LOCKED is set */
|
||||
|
Reference in New Issue
Block a user