Skip to content

Commit c604028

Browse files
committed
mandatory plugins cannot be less mature than the server
1 parent 5831851 commit c604028

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/sql_plugin.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,6 +1680,8 @@ int plugin_init(int *argc, char **argv, int flags)
16801680
tmp.name.length= strlen(plugin->name);
16811681
tmp.state= 0;
16821682
tmp.load_option= mandatory ? PLUGIN_FORCE : PLUGIN_ON;
1683+
DBUG_ASSERT(!mandatory ||
1684+
plugin_maturity_map[plugin->maturity] >= SERVER_MATURITY_LEVEL);
16831685

16841686
for (i=0; i < array_elements(override_plugin_load_policy); i++)
16851687
{

0 commit comments

Comments
 (0)