~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_panic.c

  • Committer: Monty Taylor
  • Date: 2008-07-15 21:40:58 UTC
  • mfrom: (77.1.113 codestyle32)
  • mto: This revision was merged to the branch mainline in revision 176.
  • Revision ID: mordred@camelot-20080715214058-rm3phulldos9xehv
Merged from codestyle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
  int error=0;
29
29
  LIST *list_element,*next_open;
30
30
  MI_INFO *info;
 
31
  DBUG_ENTER("mi_panic");
31
32
 
32
33
  pthread_mutex_lock(&THR_LOCK_myisam);
33
34
  for (list_element=myisam_open_list ; list_element ; list_element=next_open)
100
101
      break;
101
102
    }
102
103
  }
 
104
  if (flag == HA_PANIC_CLOSE)
 
105
  {
 
106
    VOID(mi_log(0));                            /* Close log if neaded */
 
107
  }
103
108
  pthread_mutex_unlock(&THR_LOCK_myisam);
104
109
  if (!error)
105
 
    return(0);
106
 
  return(my_errno=error);
 
110
    DBUG_RETURN(0);
 
111
  DBUG_RETURN(my_errno=error);
107
112
} /* mi_panic */