[MDEV-19513] Allocate dict_sys statically Created: 2019-05-17  Updated: 2019-05-24  Resolved: 2019-05-17

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: None
Fix Version/s: 10.4.5

Type: Bug Priority: Major
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-19584 Allocate recv_sys statically Closed
relates to MDEV-17794 Do not assign persistent ID for tempo... Closed

 Description   

There is only one InnoDB data dictionary cache. Allocating dict_sys statically removes one level of pointer indirection and makes code more readable. We did something similar to trx_sys, lock_sys and purge_sys in MariaDB 10.3 already.

While we are at it, we should replace some C-style accessor functions with member functions of dict_sys_t, so that some members of the structure can be declared private.

Note: dict_sys_t::dict_sys_t() was introduced already in MDEV-17794.


Generated at Thu Feb 08 08:52:16 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.