1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Move handler specific options into handlerton flag check

BUG#13108
This commit is contained in:
eric@mysql.com
2005-09-30 16:26:48 -07:00
parent 16cd4bd332
commit 5008a5f208
13 changed files with 111 additions and 18 deletions

View File

@ -183,6 +183,23 @@ const char *ha_get_storage_engine(enum db_type db_type)
return "none";
}
bool ha_check_storage_engine_flag(enum db_type db_type, uint32 flag)
{
show_table_type_st *types;
for (types= sys_table_types; types->type; types++)
{
if (db_type == types->db_type)
{
if (types->ht->flags & flag)
return TRUE;
else
return FALSE;
}
}
return FALSE;
}
my_bool ha_storage_engine_is_enabled(enum db_type database_type)
{