mirror of
https://github.com/MariaDB/server.git
synced 2026-05-11 01:20:15 +02:00
MDEV-26195: Use a 32-bit data type for some tablespace fields
In the InnoDB data files, we allocate 32 bits for tablespace identifiers and page numbers as well as tablespace flags. But, in main memory data structures we allocate 32 or 64 bits, depending on the register width of the processor. Let us always use 32-bit fields to eliminate a mismatch and reduce the memory footprint on 64-bit systems.
This commit is contained in:
parent
cee37b5d26
commit
ca501ffb04
67 changed files with 692 additions and 934 deletions
|
|
@ -162,7 +162,7 @@ dict_table_t *dict_table_t::create(const span<const char> &name,
|
|||
table->mdl_name.m_name= table->name.m_name;
|
||||
table->is_system_db= dict_mem_table_is_system(table->name.m_name);
|
||||
table->space= space;
|
||||
table->space_id= space ? space->id : ULINT_UNDEFINED;
|
||||
table->space_id= space ? space->id : UINT32_MAX;
|
||||
table->n_t_cols= static_cast<unsigned>(n_cols + DATA_N_SYS_COLS) &
|
||||
dict_index_t::MAX_N_FIELDS;
|
||||
table->n_v_cols= static_cast<unsigned>(n_v_cols) &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue