[MDEV-27057] Cleanup: AUTHID is abused by being used as a struct Created: 2021-11-16 Updated: 2021-11-16 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Vicențiu Ciorbaru | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
There is different logic (getters, setters) related to AUTHID spread around sql_class.h, sp.h, etc. as well as within the AUTHID class member functions as well. See: set_invoker, get_definer in sql_class.h. There is no constructor defined for AUTHID and it is possible to bring it into an inconsistent state. Refactor this code to make AUTHID self contained have code use it with its presented interface only. |