~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_rsame.c

  • Committer: Jay Pipes
  • Date: 2008-07-16 16:14:22 UTC
  • mto: This revision was merged to the branch mainline in revision 182.
  • Revision ID: jay@mysql.com-20080716161422-fy1bl8o5q7m8kglq
Removed all DBUG symbols from heap storage engine

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
int heap_rsame(register HP_INFO *info, uchar *record, int inx)
29
29
{
30
30
  HP_SHARE *share=info->s;
31
 
  DBUG_ENTER("heap_rsame");
32
31
 
33
32
  test_active(info);
34
33
  if (info->current_ptr[share->reclength])
35
34
  {
36
35
    if (inx < -1 || inx >= (int) share->keys)
37
36
    {
38
 
      DBUG_RETURN(my_errno=HA_ERR_WRONG_INDEX);
 
37
      return(my_errno=HA_ERR_WRONG_INDEX);
39
38
    }
40
39
    else if (inx != -1)
41
40
    {
44
43
      if (!hp_search(info, share->keydef + inx, info->lastkey, 3))
45
44
      {
46
45
        info->update=0;
47
 
        DBUG_RETURN(my_errno);
 
46
        return(my_errno);
48
47
      }
49
48
    }
50
49
    memcpy(record,info->current_ptr,(size_t) share->reclength);
51
 
    DBUG_RETURN(0);
 
50
    return(0);
52
51
  }
53
52
  info->update=0;
54
53
 
55
 
  DBUG_RETURN(my_errno=HA_ERR_RECORD_DELETED);
 
54
  return(my_errno=HA_ERR_RECORD_DELETED);
56
55
}