~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_panic.c

Removed/replaced DBUG symbols and standardized TRUE/FALSE

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)
56
57
        if (flush_io_cache(&info->rec_cache))
57
58
          error=my_errno;
58
59
        reinit_io_cache(&info->rec_cache,READ_CACHE,0,
59
 
                       (bool) (info->lock_type != F_UNLCK),1);
 
60
                       (pbool) (info->lock_type != F_UNLCK),1);
60
61
      }
61
62
      if (info->lock_type != F_UNLCK && ! info->was_locked)
62
63
      {
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 */