[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: |
|
||||||||||||
| 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 |