~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_rnext_same.c

Removed/replaced DBUG

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
  int error;
29
29
  uint inx,not_used[2];
30
30
  MI_KEYDEF *keyinfo;
31
 
  DBUG_ENTER("mi_rnext_same");
32
31
 
33
32
  if ((int) (inx=info->lastinx) < 0 || info->lastpos == HA_OFFSET_ERROR)
34
 
    DBUG_RETURN(my_errno=HA_ERR_WRONG_INDEX);
 
33
    return(my_errno=HA_ERR_WRONG_INDEX);
35
34
  keyinfo=info->s->keyinfo+inx;
36
35
  if (fast_mi_readinfo(info))
37
 
    DBUG_RETURN(my_errno);
 
36
    return(my_errno);
38
37
 
39
38
  if (info->s->concurrent_insert)
40
39
    rw_rdlock(&info->s->key_root_lock[inx]);
81
80
  }
82
81
  else if (!buf)
83
82
  {
84
 
    DBUG_RETURN(info->lastpos==HA_OFFSET_ERROR ? my_errno : 0);
 
83
    return(info->lastpos==HA_OFFSET_ERROR ? my_errno : 0);
85
84
  }
86
85
  else if (!(*info->read_record)(info,info->lastpos,buf))
87
86
  {
88
87
    info->update|= HA_STATE_AKTIV;              /* Record is read */
89
 
    DBUG_RETURN(0);
 
88
    return(0);
90
89
  }
91
 
  DBUG_RETURN(my_errno);
 
90
  return(my_errno);
92
91
} /* mi_rnext_same */