~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mf_keycache.c

  • Committer: Monty Taylor
  • Date: 2009-01-23 07:27:09 UTC
  • mto: (779.7.3 devel)
  • mto: This revision was merged to the branch mainline in revision 816.
  • Revision ID: mordred@inaugust.com-20090123072709-x3glaj1pd0b8xk7u
More cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2194
2194
unsigned char *key_cache_read(KEY_CACHE *keycache,
2195
2195
                      File file, my_off_t filepos, int level,
2196
2196
                      unsigned char *buff, uint32_t length,
2197
 
                      uint32_t block_length __attribute__((unused)),
2198
 
                      int return_buffer __attribute__((unused)))
 
2197
                      uint32_t block_length,
 
2198
                      int return_buffer)
2199
2199
{
 
2200
  (void)block_length;
 
2201
  (void)return_buffer;
2200
2202
  bool locked_and_incremented= false;
2201
2203
  int error=0;
2202
2204
  unsigned char *start= buff;
2620
2622
int key_cache_write(KEY_CACHE *keycache,
2621
2623
                    File file, my_off_t filepos, int level,
2622
2624
                    unsigned char *buff, uint32_t length,
2623
 
                    uint32_t block_length  __attribute__((unused)),
 
2625
                    uint32_t block_length,
2624
2626
                    int dont_write)
2625
2627
{
 
2628
  (void)block_length;
2626
2629
  bool locked_and_incremented= false;
2627
2630
  int error=0;
2628
2631
 
3748
3751
    0 on success (always because it can't fail)
3749
3752
*/
3750
3753
 
3751
 
int reset_key_cache_counters(const char *name __attribute__((unused)),
3752
 
                             KEY_CACHE *key_cache)
 
3754
int reset_key_cache_counters(const char *name, KEY_CACHE *key_cache)
3753
3755
{
 
3756
  (void)name;
3754
3757
  if (!key_cache->key_cache_inited)
3755
3758
  {
3756
3759
    return(0);