~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/ha_myisam.cc

  • Committer: Monty Taylor
  • Date: 2009-04-10 21:13:45 UTC
  • mto: (992.1.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: mordred@inaugust.com-20090410211345-8ti3nt2i2otjrjly
New-style plugin registration now works.
New-style plugin re-registration on the way.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1807
1807
  return COMPATIBLE_DATA_YES;
1808
1808
}
1809
1809
 
1810
 
int myisam_deinit(void *p)
1811
 
{
1812
 
 
1813
 
  MyisamEngine *engine= static_cast<MyisamEngine *>(p);
 
1810
static MyisamEngine *engine= NULL;
 
1811
 
 
1812
static int myisam_init(Plugin_registry &registry)
 
1813
{
 
1814
  engine= new MyisamEngine(engine_name);
 
1815
  registry.registerPlugin(engine);
 
1816
 
 
1817
  pthread_mutex_init(&THR_LOCK_myisam,MY_MUTEX_INIT_FAST);
 
1818
 
 
1819
  return 0;
 
1820
}
 
1821
 
 
1822
int myisam_deinit(void *)
 
1823
{
 
1824
 
1814
1825
  delete engine;
1815
1826
 
1816
1827
  pthread_mutex_destroy(&THR_LOCK_myisam);
1818
1829
  return mi_panic(HA_PANIC_CLOSE);
1819
1830
}
1820
1831
 
1821
 
static int myisam_init(void *p)
1822
 
{
1823
 
  StorageEngine **engine= static_cast<StorageEngine **>(p);
1824
 
  
1825
 
  *engine= new MyisamEngine(engine_name);
1826
 
 
1827
 
  return 0;
1828
 
}
1829
 
 
1830
 
 
1831
1832
 
1832
1833
/****************************************************************************
1833
1834
 * MyISAM MRR implementation: use DS-MRR