~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mf_keycache.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:
3741
3741
 
3742
3742
  SYNOPSIS
3743
3743
    reset_key_cache_counters()
3744
 
    name       the name of a key cache
3745
 
    key_cache  pointer to the key kache to be reset
3746
3744
 
3747
3745
  DESCRIPTION
3748
 
   This procedure is used by process_key_caches() to reset the counters of all
3749
 
   currently used key caches, both the default one and the named ones.
 
3746
   This procedure is used by process_key_caches() to reset the key_cache.
3750
3747
 
3751
3748
  RETURN
3752
3749
    0 on success (always because it can't fail)
3753
3750
*/
3754
3751
 
3755
 
int reset_key_cache_counters(const char *name, KEY_CACHE *key_cache)
 
3752
void reset_key_cache_counters()
3756
3753
{
3757
 
  (void)name;
3758
 
  if (!key_cache->key_cache_inited)
3759
 
  {
3760
 
    return(0);
3761
 
  }
3762
 
  key_cache->global_blocks_changed= 0;   /* Key_blocks_not_flushed */
3763
 
  key_cache->global_cache_r_requests= 0; /* Key_read_requests */
3764
 
  key_cache->global_cache_read= 0;       /* Key_reads */
3765
 
  key_cache->global_cache_w_requests= 0; /* Key_write_requests */
3766
 
  key_cache->global_cache_write= 0;      /* Key_writes */
3767
 
  return(0);
 
3754
  dflt_key_cache->global_blocks_changed= 0;   /* Key_blocks_not_flushed */
 
3755
  dflt_key_cache->global_cache_r_requests= 0; /* Key_read_requests */
 
3756
  dflt_key_cache->global_cache_read= 0;       /* Key_reads */
 
3757
  dflt_key_cache->global_cache_w_requests= 0; /* Key_write_requests */
 
3758
  dflt_key_cache->global_cache_write= 0;      /* Key_writes */
3768
3759
}
3769
3760
 
3770
3761
#if defined(KEYCACHE_TIMEOUT)