1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

mandatory plugins cannot be less mature than the server

This commit is contained in:
Sergei Golubchik
2025-10-17 13:29:16 +02:00
parent 58318518d2
commit c604028de4

View File

@@ -1680,6 +1680,8 @@ int plugin_init(int *argc, char **argv, int flags)
tmp.name.length= strlen(plugin->name);
tmp.state= 0;
tmp.load_option= mandatory ? PLUGIN_FORCE : PLUGIN_ON;
DBUG_ASSERT(!mandatory ||
plugin_maturity_map[plugin->maturity] >= SERVER_MATURITY_LEVEL);
for (i=0; i < array_elements(override_plugin_load_policy); i++)
{