[MDEV-7781] [PATCH] cannot install/uninstall plugins during bootstrap Created: 2015-03-15  Updated: 2015-05-03  Resolved: 2015-05-03

Status: Closed
Project: MariaDB Server
Component/s: Plugins
Affects Version/s: 5.5, 10.0
Fix Version/s: 10.0.18

Type: Bug Priority: Critical
Reporter: Daniel Black Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: patch


 Description   

As otto and I have been trying to package auth_socket.so install this plugin during install.

As Jean and I noticed https://lists.launchpad.net/maria-developers/msg08317.html you can't install a plugin during bootstrap as it automaticly enables --skip-grant-tables (effectively).

While you can insert into the plugin table directly this skips the init routes in the plugin, fine for auth_socket since it doesn't have any, however its a bad practice we probably don't want to encourage.

patch: https://github.com/MariaDB/server/pull/29



 Comments   
Comment by Sergei Golubchik [ 2015-05-02 ]

If you INSERT directly into the plugin table, plugin is installed, but not loaded in memory. That is, is will be usable only after the server is restarted. Which is absolutely fine (and even desirable!) if you install a plugin for the user to use. But it's not fine if you install a plugin to use during bootstrap.

Anyway, I agree that allowing INSTALL/UNINSTALL plugin with --skip-grants is ok.

Generated at Thu Feb 08 07:22:13 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.