~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_info.c

  • Committer: Monty Taylor
  • Date: 2008-07-16 19:10:24 UTC
  • mfrom: (51.1.127 remove-dbug)
  • mto: This revision was merged to the branch mainline in revision 176.
  • Revision ID: monty@inaugust.com-20080716191024-prjgoh7fbri7rx26
MergedĀ fromĀ remove-dbug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
{
36
36
  struct stat state;
37
37
  MYISAM_SHARE *share=info->s;
38
 
  DBUG_ENTER("mi_status");
39
38
 
40
39
  x->recpos  = info->lastpos;
41
40
  if (flag == HA_STATUS_POS)
42
 
    DBUG_RETURN(0);                             /* Compatible with ISAM */
 
41
    return(0);                          /* Compatible with ISAM */
43
42
  if (!(flag & HA_STATUS_NO_LOCK))
44
43
  {
45
44
    pthread_mutex_lock(&share->intern_lock);
95
94
    if (!x->auto_increment)                     /* This shouldn't happen */
96
95
      x->auto_increment= ~(uint64_t) 0;
97
96
  }
98
 
  DBUG_RETURN(0);
 
97
  return(0);
99
98
}
100
99
 
101
100
 
121
120
void mi_report_error(int errcode, const char *file_name)
122
121
{
123
122
  size_t        lgt;
124
 
  DBUG_ENTER("mi_report_error");
125
 
  DBUG_PRINT("enter",("errcode %d, table '%s'", errcode, file_name));
126
123
 
127
124
  if ((lgt= strlen(file_name)) > 64)
128
125
    file_name+= lgt - 64;
129
126
  my_error(errcode, MYF(ME_NOREFRESH), file_name);
130
 
  DBUG_VOID_RETURN;
 
127
  return;
131
128
}
132
129