Commit 505410e4 authored by marko's avatar marko

branches/zip: Replace the table attribute AVG_ROW_LENGTH (ugly hack to

pass the compressed page size) with KEY_BLOCK_SIZE.
parent dedf1352
......@@ -4903,13 +4903,12 @@ ha_innobase::create(
if (form->s->row_type != ROW_TYPE_REDUNDANT) {
flags |= DICT_TF_COMPACT;
#if 1 /* TODO: implement a proper way to specify zip_size */
switch (create_info->avg_row_length) {
switch (create_info->key_block_size) {
case 1: case 2: case 4: case 8: case 16:
flags |= create_info->avg_row_length
flags |= create_info->key_block_size
<< DICT_TF_COMPRESSED_SHIFT;
}
#endif
}
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