Commit 8b468256 authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4831,7 +4831,8 @@ int ha_ndbcluster::create(const char *name,
    if ((my_errno= create_ndb_column(col, field, create_info)))
      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);
    else
      col.setStorageType(NdbDictionary::Column::StorageTypeMemory);