~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_rprev.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:
23
23
  uchar *pos;
24
24
  HP_SHARE *share=info->s;
25
25
  HP_KEYDEF *keyinfo;
26
 
  DBUG_ENTER("heap_rprev");
27
26
 
28
27
  if (info->lastinx < 0)
29
 
    DBUG_RETURN(my_errno=HA_ERR_WRONG_INDEX);
 
28
    return(my_errno=HA_ERR_WRONG_INDEX);
30
29
  keyinfo = share->keydef + info->lastinx;
31
30
  if (keyinfo->algorithm == HA_KEY_ALG_BTREE)
32
31
  {
75
74
    info->update=HA_STATE_PREV_FOUND;           /* For heap_rprev */
76
75
    if (my_errno == HA_ERR_KEY_NOT_FOUND)
77
76
      my_errno=HA_ERR_END_OF_FILE;
78
 
    DBUG_RETURN(my_errno);
 
77
    return(my_errno);
79
78
  }
80
79
  memcpy(record,pos,(size_t) share->reclength);
81
80
  info->update=HA_STATE_AKTIV | HA_STATE_PREV_FOUND;
82
 
  DBUG_RETURN(0);
 
81
  return(0);
83
82
}