#At file:///data0/magnus/mysql/7.0/ based on revid:magnus.blaudd@stripped
4435 magnus.blaudd@stripped 2011-05-31
ndb
- map the creat_info->storage_media to respective ndb value
and save it in ndb's datadictionary when creating the table
modified:
sql/ha_ndbcluster.cc
=== modified file 'sql/ha_ndbcluster.cc'
--- a/sql/ha_ndbcluster.cc 2011-05-31 14:38:10 +0000
+++ b/sql/ha_ndbcluster.cc 2011-05-31 15:07:46 +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",
Attachment: [text/bzr-bundle] bzr/magnus.blaudd@oracle.com-20110531150746-6m52zkcxztwemj60.bundle
| Thread |
|---|
| • bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4435) | magnus.blaudd | 31 May |