~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_close.cc

  • Committer: Brian Aker
  • Date: 2009-04-01 01:25:04 UTC
  • mfrom: (968.2.27 mordred)
  • Revision ID: brian@tangent.org-20090401012504-mq9sxcmph5jc1fh6
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "myisamdef.h"
24
24
 
25
 
int mi_close(register MI_INFO *info)
 
25
int mi_close(MI_INFO *info)
26
26
{
27
27
  int error=0,flag;
28
28
  MYISAM_SHARE *share=info->s;
53
53
    info->opt_flag&= ~(READ_CACHE_USED | WRITE_CACHE_USED);
54
54
  }
55
55
  flag= !--share->reopen;
56
 
  myisam_open_list=list_delete(myisam_open_list,&info->open_list);
 
56
  myisam_open_list.remove(info);
57
57
  pthread_mutex_unlock(&share->intern_lock);
58
58
 
59
59
  void * rec_buff_ptr= mi_get_rec_buff_ptr(info, info->rec_buff);
94
94
        pthread_rwlock_destroy(&share->key_root_lock[i]);
95
95
      }
96
96
    }
 
97
    delete info->s->in_use;
97
98
    free((unsigned char*) info->s);
98
99
  }
99
100
  pthread_mutex_unlock(&THR_LOCK_myisam);