List:Internals« Previous MessageNext Message »
From:Sergei Golubchik Date:November 21 2006 8:31am
Subject:Re: Configuration interface of pluggable storage engines
View as plain text  
Hi!

On Nov 21, Marko M?kel? wrote:
> I have been informed that in MySQL 5.1, pluggable storage engines will be
> able to declare their own configuration parameters and settable variables.
> In struct st_mysql_plugin (include/mysql/plugin.h), there are three
> fields for this:
> 
>   struct st_mysql_show_var *status_vars;
>   void * __reserved1;   /* placeholder for system variables */
>   void * __reserved2;   /* placeholder for config options */
> 
> I would have expected to find an example of the usage in
> storage/example/ha_example.cc.  Alas, all three fields are initialized
> to NULL there, just like in every other storage engine that is currently
> available at bk://mysql.bkbits.net/mysql-5.1.

This is not implemented yet :(
 
> When will this be implemented?

This is work in progress, Antony is working on it at the very moment.

> I hope that the __reserved1 and __reserved2 will be function pointers,
> because that would allow the storage engine to be notified when a
> change is requested.  That kind of functionality would be desired for
> resizing the InnoDB buffer pool at runtime.

Sure, it will be possible.

Regards,
Sergei

-- 
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik <serg@stripped>
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB, Senior Software Developer
/_/  /_/\_, /___/\___\_\___/  Kerpen, Germany
       <___/  www.mysql.com
Thread
Configuration interface of pluggable storage enginesMarko Mäkelä21 Nov
  • Re: Configuration interface of pluggable storage enginesSergei Golubchik21 Nov
    • Re: Configuration interface of pluggable storage enginesMarko Mäkelä21 Nov
    • Re: Configuration interface of pluggable storage enginesPaul McCullagh22 Nov
      • Re: Configuration interface of pluggable storage enginesStewart Smith22 Nov
        • Re: Configuration interface of pluggable storage enginesPaul McCullagh22 Nov
          • Re: Configuration interface of pluggable storage enginesStewart Smith27 Nov
            • Re: Configuration interface of pluggable storage enginesPaul McCullagh27 Nov