1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix to remove engine dependency from handler.cc file, the last one for functions.

This commit is contained in:
brian@zim.(none)
2006-03-26 01:32:52 -08:00
parent ec4910c413
commit f940472d5a
3 changed files with 20 additions and 4 deletions

View File

@ -1179,11 +1179,23 @@ bool mysql_xa_recover(THD *thd)
return value: always 0
*/
static my_bool release_temporary_latches(THD *thd, st_plugin_int *plugin,
void *unused)
{
handlerton *hton= (handlerton *) plugin->plugin->info;
if (hton->state == SHOW_OPTION_YES && hton->release_temporary_latches)
hton->release_temporary_latches(thd);
return FALSE;
}
int ha_release_temporary_latches(THD *thd)
{
#ifdef WITH_INNOBASE_STORAGE_ENGINE
innobase_release_temporary_latches(thd);
#endif
plugin_foreach(thd, release_temporary_latches, MYSQL_STORAGE_ENGINE_PLUGIN,
NULL);
return 0;
}
@ -3264,6 +3276,8 @@ int handler::ha_external_lock(THD *thd, int lock_type)
case SQLCOM_TRUNCATE:
case SQLCOM_ALTER_TABLE:
DBUG_RETURN(0);
default:
break;
}
/*