1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

This changes the order of the universe, black is now the new white.

In practice this means that handlerton is now created by the server and is passed to the engine. Plugin startups can now also control how plugins are inited (and can optionally pass values). Bit more flexibility to those who want to write plugin interfaces to the database.
This commit is contained in:
brian@zim.(none)
2006-09-15 10:28:00 -07:00
parent 24df00f232
commit 7194b6d75a
30 changed files with 398 additions and 300 deletions

View File

@@ -3276,7 +3276,7 @@ bool mysql_create_table_internal(THD *thd,
goto err;
}
}
if ((part_engine_type == &partition_hton) &&
if ((part_engine_type == partition_hton) &&
part_info->default_engine_type)
{
/*
@@ -3319,7 +3319,7 @@ bool mysql_create_table_internal(THD *thd,
part_info->part_info_len= syntax_len;
if ((!(engine_type->partition_flags &&
engine_type->partition_flags() & HA_CAN_PARTITION)) ||
create_info->db_type == &partition_hton)
create_info->db_type == partition_hton)
{
/*
The handler assigned to the table cannot handle partitioning.
@@ -3328,7 +3328,7 @@ bool mysql_create_table_internal(THD *thd,
DBUG_PRINT("info", ("db_type: %d",
ha_legacy_type(create_info->db_type)));
delete file;
create_info->db_type= &partition_hton;
create_info->db_type= partition_hton;
if (!(file= get_ha_partition(part_info)))
{
DBUG_RETURN(TRUE);
@@ -6779,7 +6779,7 @@ static bool check_engine(THD *thd, const char *table_name,
*new_engine= 0;
return TRUE;
}
*new_engine= &myisam_hton;
*new_engine= myisam_hton;
}
return FALSE;
}