From b448ad77c8266bb57c262a86b17c0a5ff7a00acb Mon Sep 17 00:00:00 2001 From: "mskold/marty@mysql.com/linux.site" <> Date: Wed, 3 Jan 2007 10:22:31 +0100 Subject: [PATCH] bug #25296 Truncate table converts NDB disk based tables to in-memory tables: ha_ndbcluster::update_create_infohas to check for explicit STORAGE MEMORY --- sql/ha_ndbcluster.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index c11c7e3c1f4..a70f63869c4 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -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; }