~mordred/drizzle/fix-bell-bugs

« back to all changes in this revision

Viewing changes to plugin/heap/hp_rsame.cc

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
  {
35
35
    if (inx < -1 || inx >= (int) share->keys)
36
36
    {
37
 
      return(my_errno=HA_ERR_WRONG_INDEX);
 
37
      return(errno=HA_ERR_WRONG_INDEX);
38
38
    }
39
39
    else if (inx != -1)
40
40
    {
43
43
      if (!hp_search(info, share->keydef + inx, info->lastkey, 3))
44
44
      {
45
45
        info->update=0;
46
 
        return(my_errno);
 
46
        return(errno);
47
47
      }
48
48
    }
49
49
    hp_extract_record(share, record, info->current_ptr);
51
51
  }
52
52
  info->update=0;
53
53
 
54
 
  return(my_errno=HA_ERR_RECORD_DELETED);
 
54
  return(errno=HA_ERR_RECORD_DELETED);
55
55
}