~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_rsamepos.c

  • Committer: Brian Aker
  • Date: 2008-07-13 19:39:24 UTC
  • Revision ID: brian@tangent.org-20080713193924-tf5yc33skcq224uf
More my_bool conversion. This time the set_var class.

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
 
32
35
  if (inx < -1 ||
33
36
      (inx >= 0 && ! mi_is_key_active(info->s->state.key_map, inx)))
34
37
  {
35
 
    return(my_errno=HA_ERR_WRONG_INDEX);
 
38
    DBUG_RETURN(my_errno=HA_ERR_WRONG_INDEX);
36
39
  }
37
40
 
38
41
  info->update&= (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED);
40
43
  {
41
44
    if (my_errno == HA_ERR_RECORD_DELETED)
42
45
      my_errno=HA_ERR_KEY_NOT_FOUND;
43
 
    return(my_errno);
 
46
    DBUG_RETURN(my_errno);
44
47
  }
45
48
  info->lastpos=filepos;
46
49
  info->lastinx=inx;
50
53
                                      info->lastpos);
51
54
    info->update|=HA_STATE_KEY_CHANGED;         /* Don't use indexposition */
52
55
  }
53
 
  return(0);
 
56
  DBUG_RETURN(0);
54
57
} /* mi_rsame_pos */