~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_rsamepos.c

Removed/replaced DBUG

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
int mi_rsame_with_pos(MI_INFO *info, uchar *record, int inx, my_off_t filepos)
31
31
{
32
 
  DBUG_ENTER("mi_rsame_with_pos");
33
 
  DBUG_PRINT("enter",("index: %d  filepos: %ld", inx, (long) filepos));
34
 
 
35
32
  if (inx < -1 ||
36
33
      (inx >= 0 && ! mi_is_key_active(info->s->state.key_map, inx)))
37
34
  {
38
 
    DBUG_RETURN(my_errno=HA_ERR_WRONG_INDEX);
 
35
    return(my_errno=HA_ERR_WRONG_INDEX);
39
36
  }
40
37
 
41
38
  info->update&= (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED);
43
40
  {
44
41
    if (my_errno == HA_ERR_RECORD_DELETED)
45
42
      my_errno=HA_ERR_KEY_NOT_FOUND;
46
 
    DBUG_RETURN(my_errno);
 
43
    return(my_errno);
47
44
  }
48
45
  info->lastpos=filepos;
49
46
  info->lastinx=inx;
53
50
                                      info->lastpos);
54
51
    info->update|=HA_STATE_KEY_CHANGED;         /* Don't use indexposition */
55
52
  }
56
 
  DBUG_RETURN(0);
 
53
  return(0);
57
54
} /* mi_rsame_pos */