Commit a43124c1 authored by Rich Prohaska's avatar Rich Prohaska

#58 #62 ignore key block size settings for tokudb. use session variables instead.

parent ff22d3cc
......@@ -6803,10 +6803,7 @@ int ha_tokudb::create_secondary_dictionary(
);
assert(row_descriptor.size <= max_row_desc_buff_size);
block_size = key_info->block_size << 10;
if (block_size == 0) {
block_size = get_tokudb_block_size(thd);
}
read_block_size = get_tokudb_read_block_size(thd);
error = create_sub_table(newname, &row_descriptor, txn, block_size, read_block_size, row_type_to_compression_method(row_type), is_hot_index);
......@@ -6896,12 +6893,7 @@ int ha_tokudb::create_main_dictionary(const char* name, TABLE* form, DB_TXN* txn
);
assert(row_descriptor.size <= max_row_desc_buff_size);
block_size = 0;
if (prim_key)
block_size = prim_key->block_size << 10;
if (block_size == 0) {
block_size = get_tokudb_block_size(thd);
}
read_block_size = get_tokudb_read_block_size(thd);
/* Create the main table that will hold the real rows */
......
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