~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_close.c

  • Committer: Brian Aker
  • Date: 2008-07-16 21:28:26 UTC
  • mfrom: (77.3.28 glibclient)
  • Revision ID: brian@tangent.org-20080716212826-p44t3u6v1zb0dmxg
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
{
27
27
  int error=0,flag;
28
28
  MYISAM_SHARE *share=info->s;
29
 
  DBUG_ENTER("mi_close");
30
 
  DBUG_PRINT("enter",("base: 0x%lx  reopen: %u  locks: %u",
31
 
                      (long) info, (uint) share->reopen,
32
 
                      (uint) share->tot_locks));
33
29
 
34
30
  pthread_mutex_lock(&THR_LOCK_myisam);
35
31
  if (info->lock_type == F_EXTRA_LCK)
112
108
 
113
109
  if (error)
114
110
  {
115
 
    DBUG_RETURN(my_errno=error);
 
111
    return(my_errno=error);
116
112
  }
117
 
  DBUG_RETURN(0);
 
113
  return(0);
118
114
} /* mi_close */