dbTalk Databases Forums  

Storage Engine Source Structure

mailing.database.mysql-internals mailing.database.mysql-internals


Discuss Storage Engine Source Structure in the mailing.database.mysql-internals forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Storage Engine Source Structure - 05-04-2006 , 04:40 PM






In the 5.1.9-beta source tree it seems that some storage engine source
code is in the sql directory, some is in the storage directory, and yet
others put code in both.

Is there a preferred location?


Brian Aker, at the 2006 MySQL User Conference last week, mentioned that
the way to start a new storage engine is to duplicate the example
engine, and grep for example and change other source code in and around
grep example hits. I tried to do this and found that there are LOTS of
grep hits in the source code for example.

Instead I duplicated the blackhole engine, and made changes in and
around grep hits for blackhole.

This should be fine, right?


--
Don't believe everything you think!

Paul Whittington
NitroSecurity, Inc.
www.nitrosecurity.com


--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?uns...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: Storage Engine Source Structure - 05-04-2006 , 05:08 PM






On Thu, May 04, 2006 at 03:39:54PM -0600, Paul Whittington wrote:
Quote:
In the 5.1.9-beta source tree it seems that some storage engine source
code is in the sql directory, some is in the storage directory, and yet
others put code in both.

Is there a preferred location?
it should all be in storage/<enginename>. the archive and csv storage
engines are good examples of this, the older engines have not been
brought up to date in this regard yet.

the way storage engines are plugged into the configuration has just
changed in the 5.1 tree. it is much more straightforward now. the
upcoming 5.1.10 will include these changes.

jim

--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?uns...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.