Commit 57df0547 authored by marko's avatar marko

branches/zip: Temporarily allow the compressed page size to be specified

in CREATE TABLE and ALTER TABLE with AVG_ROW_LENGTH={1,2,4,8,16}.
parent 5d8a41d9
...@@ -4709,6 +4709,15 @@ ha_innobase::create( ...@@ -4709,6 +4709,15 @@ ha_innobase::create(
if (form->s->row_type != ROW_TYPE_REDUNDANT) { if (form->s->row_type != ROW_TYPE_REDUNDANT) {
flags |= DICT_TF_COMPACT; flags |= DICT_TF_COMPACT;
#if 1 /* TODO: implement a proper way to specify zip_size */
if (create_info->used_fields & HA_CREATE_USED_AVG_ROW_LENGTH) {
switch (create_info->avg_row_length) {
case 1: case 2: case 4: case 8: case 16:
flags |= create_info->avg_row_length
<< DICT_TF_COMPRESSED_SHIFT;
}
}
#endif
} }
error = create_table_def(trx, form, norm_name, error = create_table_def(trx, form, norm_name,
......
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