List:Internals« Previous MessageNext Message »
From:Stewart Smith Date:November 27 2006 5:53am
Subject:Re: Configuration interface of pluggable storage engines
View as plain text  
On Wed, 2006-11-22 at 13:38 +0100, Paul McCullagh wrote: 
> On Nov 22, 2006, at 12:38 PM, Stewart Smith wrote:
> 
> > I'm also waiting for it in my work to make NDB pluggable. We have  
> > quite
> > a lot of options that can be specified on command line/my.cnf for NDB.
> >
> > As a temporary gross hack, I've put the configuration options into a
> > table.
> 
> Do you mean like a virtual table?
> 
> I'm just wondering if there is a way an engine can generate tables  
> that are available by default?

I hacked it with a MyISAM table and using calls to the handler
directly...

otherwise - if you have "tables" you want to be discovered, there's the
ha_create_table_from_engine (IIRC that's what it's called) that NDB uses
for table discovery that could also be used for an engine providing
virtual tables (e.g. perf metrics etc)


> > Of course, I haven't managed to get it all linking successfully  
> > yet*, so
> > I can't tell you if it works or not :)
> >
> > [*] various libtool and automake foo seem to be slightly akin to  
> > finely
> > chopping onions with a really sharp knife - blindfolded and drunk;
> > perhaps i'm just not too knowledgable there though :)
> 
> I know exactly what you mean! But a pluggable NDB should be worth the  
> effort!

well it now links (embedded server doesn't though). certainly at least
for an engine like NDB the full pluggable architecture isn't yet
(cleanly) up to the task. However, the work is ongoing so it should be
relatively soon (and will make my patch look a lot nicer).

I think I'll have to fully libtool-ize the embedded server to get it
linking... i don't know why this hasn't been done before (waiting for
someone to pipe up with the answer :)



-- 
Stewart Smith, Software Engineer
MySQL AB, www.mysql.com
Office: +14082136540 Ext: 6616
VoIP: 6616@stripped
Mobile: +61 4 3 8844 332

Jumpstart your cluster:
http://www.mysql.com/consulting/packaged/cluster.html

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
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