1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-17 14:41:26 +03:00

bug #25296 Truncate table converts NDB disk based tables to in-memory tables: ha_ndbcluster::update_create_infohas to check for explicit STORAGE MEMORY

This commit is contained in:
mskold/marty@mysql.com/linux.site 2007-01-03 10:22:31 +01:00
parent 500918f2ab
commit b448ad77c8

View File

@ -8311,7 +8311,8 @@ ha_ndbcluster::setup_recattr(const NdbRecAttr* curr)
void ha_ndbcluster::update_create_info(HA_CREATE_INFO *create_info)
{
if (get_tablespace_name(current_thd,0,0))
if (create_info->storage_media != HA_SM_MEMORY &&
get_tablespace_name(current_thd,0,0))
create_info->storage_media= HA_SM_DISK;
}