summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorMagnus Blåudd <magnus.blaudd@oracle.com>2011-03-25 10:06:07 +0100
committerMagnus Blåudd <magnus.blaudd@oracle.com>2011-03-25 10:06:07 +0100
commit3d8d67245051f489c3702e35a3201e092da28a88 (patch)
tree238d678c16d3add083d6610abdb1540607d12611 /sql/table.h
parent6c85d6535781870e9d35a0f00ace9ef42edf3e90 (diff)
downloadmariadb-git-3d8d67245051f489c3702e35a3201e092da28a88.tar.gz
Bug#60111 storage type for table not saved in .frm
(aka BUG#11766883) - fix review comments - Rewrite last usage of handler::get_tablespace_name to use table->s->tablespace directly - Remove(revert) the addition of default implementation for handler::get_tablespace_name - Add comments describing the new TABLE_SHARE members default_storage_media and tablespace - Fix usage of incorrect mask for column_format bits, i.e COLUMN_FORMAT_MASK
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sql/table.h b/sql/table.h
index bd8c66173f4..afdf4f7baa9 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -609,8 +609,6 @@ struct TABLE_SHARE
}
enum row_type row_type; /* How rows are stored */
enum tmp_table_type tmp_table;
- enum ha_storage_media default_storage_media;
- char *tablespace;
uint ref_count; /* How many TABLE objects uses this */
uint blob_ptr_size; /* 4 or 8 */
@@ -653,6 +651,16 @@ struct TABLE_SHARE
*/
int cached_row_logging_check;
+ /*
+ Storage media to use for this table (unless another storage
+ media has been specified on an individual column - in versions
+ where that is supported)
+ */
+ enum ha_storage_media default_storage_media;
+
+ /* Name of the tablespace used for this table */
+ char *tablespace;
+
#ifdef WITH_PARTITION_STORAGE_ENGINE
/* filled in when reading from frm */
bool auto_partitioned;