[MDEV-20300] Log warning at startup if plugin-load option is detected and plugin load list is non-empty Created: 2019-08-08 Updated: 2023-04-24 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Plugins |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | warning | ||
| Description |
|
The plugin-load option can be somewhat dangerous to use. The documentation says the following:
https://mariadb.com/kb/en/library/plugin-overview/#specifying-multiple-plugin-load-options This behavior can lead to confusing issues, especially when a user has multiple configuration files, and they aren't aware of the load order. Currently, when MariaDB encounters the plugin-load option, it just frees the list without logging anything: https://github.com/MariaDB/server/blob/mariadb-10.4.7/sql/mysqld.cc#L8550 If log_warnings is set to some value (maybe 2?), and if the plugin-load list is non-empty, then I think it should log a warning like this:
|
| Comments |
| Comment by Sergei Golubchik [ 2020-04-30 ] |
|
This behavior of --plugin-load is intentional and consistent with how almost all other options behave. But we can still do a warning, I suppose. |