Commit 8b468256 authored by unknown's avatar unknown

BUG#25880, Adding new column to ndb_dd table moves data for non_indexed fields in memory

correct the inconsistency between columns' storage type with table's storage_media & tablespace


sql/ha_ndbcluster.cc:
  move something to proper location, 
  then columns' storage type are consistent with table's storage_media & tablespace
parent 34099021
...@@ -4831,7 +4831,8 @@ int ha_ndbcluster::create(const char *name, ...@@ -4831,7 +4831,8 @@ int ha_ndbcluster::create(const char *name,
if ((my_errno= create_ndb_column(col, field, create_info))) if ((my_errno= create_ndb_column(col, field, create_info)))
DBUG_RETURN(my_errno); DBUG_RETURN(my_errno);
if (create_info->storage_media == HA_SM_DISK) if (create_info->storage_media == HA_SM_DISK ||
create_info->tablespace)
col.setStorageType(NdbDictionary::Column::StorageTypeDisk); col.setStorageType(NdbDictionary::Column::StorageTypeDisk);
else else
col.setStorageType(NdbDictionary::Column::StorageTypeMemory); col.setStorageType(NdbDictionary::Column::StorageTypeMemory);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment