Commit d97b448b authored by marko's avatar marko

branches/zip: dict_check_tablespaces_and_store_max_id():

Determine zip_size in kilobytes, pass on in bytes.
parent bbcdac2c
......@@ -304,14 +304,14 @@ dict_check_tablespaces_and_store_max_id(
byte* field;
ulint len;
ulint space_id;
ulint zip_size;
ulint zip_size_in_k;
char* name;
field = rec_get_nth_field_old(rec, 0, &len);
name = mem_strdupl((char*) field, len);
zip_size = dict_sys_tables_get_zip_size(rec);
ut_a(zip_size != ULINT_UNDEFINED);
zip_size_in_k = dict_sys_tables_get_zip_size(rec);
ut_a(zip_size_in_k != ULINT_UNDEFINED);
field = rec_get_nth_field_old(rec, 9, &len);
ut_a(len == 4);
......@@ -335,7 +335,7 @@ dict_check_tablespaces_and_store_max_id(
object and check that the .ibd file exists. */
fil_open_single_table_tablespace(FALSE, space_id,
zip_size, name);
zip_size_in_k * 1024, name);
}
mem_free(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