~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/ha_myisam.cc

  • Committer: Brian Aker
  • Date: 2009-08-03 15:50:04 UTC
  • mfrom: (1106.3.2 heap)
  • Revision ID: brian@gaz-20090803155004-tq6ec51i68ay1aye
Merge of Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1750
1750
 
1751
1751
static int myisam_init(PluginRegistry &registry)
1752
1752
{
 
1753
  int error;
1753
1754
  engine= new MyisamEngine(engine_name);
1754
1755
  registry.add(engine);
1755
1756
 
1756
1757
  pthread_mutex_init(&THR_LOCK_myisam,MY_MUTEX_INIT_FAST);
1757
1758
 
 
1759
  /* call ha_init_key_cache() on all key caches to init them */
 
1760
  error= init_key_cache(dflt_key_cache,
 
1761
                        (uint32_t) dflt_key_cache->param_block_size,
 
1762
                        (uint32_t) dflt_key_cache->param_buff_size,
 
1763
                        dflt_key_cache->param_division_limit, 
 
1764
                        dflt_key_cache->param_age_threshold);
 
1765
 
 
1766
  if (error == 0)
 
1767
    exit(1); /* Memory Allocation Failure */
 
1768
 
1758
1769
  return 0;
1759
1770
}
1760
1771
 
1764
1775
  delete engine;
1765
1776
 
1766
1777
  pthread_mutex_destroy(&THR_LOCK_myisam);
 
1778
  end_key_cache(dflt_key_cache, 1);             // Can never fail
1767
1779
 
1768
1780
  return mi_panic(HA_PANIC_CLOSE);
1769
1781
}