From: magnus.blaudd Date: June 7 2011 12:36pm Subject: bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4444) List-Archive: http://lists.mysql.com/commits/138771 Message-Id: <20110607123610.1C45913402B@pilot> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit #At file:///home/msvensson/mysql/7.0/ based on revid:magnus.blaudd@stripped 4444 magnus.blaudd@stripped 2011-06-07 [merge] Merge modified: sql/ha_ndbcluster.cc sql/ha_ndbcluster.h === modified file 'sql/ha_ndbcluster.cc' --- a/sql/ha_ndbcluster.cc 2011-06-07 12:29:53 +0000 +++ b/sql/ha_ndbcluster.cc 2011-06-07 12:36:05 +0000 @@ -8437,6 +8437,20 @@ int ha_ndbcluster::create(const char *na goto abort_return; } + // Save the table level storage media setting + switch(create_info->storage_media) + { + case HA_SM_DISK: + tab.setStorageType(NdbDictionary::Column::StorageTypeDisk); + break; + case HA_SM_DEFAULT: + tab.setStorageType(NdbDictionary::Column::StorageTypeDefault); + break; + case HA_SM_MEMORY: + tab.setStorageType(NdbDictionary::Column::StorageTypeMemory); + break; + } + DBUG_PRINT("info", ("Table %s is %s stored with tablespace %s", m_tabname, (use_disk) ? "disk" : "memory", @@ -10533,10 +10547,11 @@ int ndbcluster_find_all_files(THD *thd) DBUG_RETURN(-(skipped + unhandled)); } -int ndbcluster_find_files(handlerton *hton, THD *thd, - const char *db, - const char *path, - const char *wild, bool dir, List *files) + +static int +ndbcluster_find_files(handlerton *hton, THD *thd, + const char *db, const char *path, + const char *wild, bool dir, List *files) { DBUG_ENTER("ndbcluster_find_files"); DBUG_PRINT("enter", ("db: %s", db)); @@ -10902,7 +10917,7 @@ static int ndbcluster_init(void *p) ndbcluster_binlog_init_handlerton(); h->flags= HTON_CAN_RECREATE | HTON_TEMPORARY_NOT_SUPPORTED; h->discover= ndbcluster_discover; - h->find_files= ndbcluster_find_files; + h->find_files= ndbcluster_find_files; h->table_exists_in_engine= ndbcluster_table_exists_in_engine; } === modified file 'sql/ha_ndbcluster.h' --- a/sql/ha_ndbcluster.h 2011-04-29 09:06:21 +0000 +++ b/sql/ha_ndbcluster.h 2011-05-31 14:38:10 +0000 @@ -885,8 +885,6 @@ private: int ndbcluster_discover(THD* thd, const char* dbname, const char* name, const void** frmblob, uint* frmlen); -int ndbcluster_find_files(THD *thd,const char *db,const char *path, - const char *wild, bool dir, List *files); int ndbcluster_table_exists_in_engine(THD* thd, const char *db, const char *name); void ndbcluster_print_error(int error, const NdbOperation *error_op); No bundle (reason: revision is a merge (you can force generation of a bundle with env var BZR_FORCE_BUNDLE=1)).