mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
branches/zip: dict_check_tablespaces_and_store_max_id():
Determine zip_size in kilobytes, pass on in bytes.
This commit is contained in:
parent
cc3f8b2136
commit
413f8ab0c1
1 changed files with 4 additions and 4 deletions
|
@ -304,14 +304,14 @@ loop:
|
|||
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 @@ loop:
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue