28 int heap_rsame(
register HP_INFO *info, uchar *
record,
int inx)
31 DBUG_ENTER(
"heap_rsame");
34 if (info->current_ptr[share->reclength])
36 if (inx < -1 || inx >= (
int) share->keys)
38 DBUG_RETURN(my_errno=HA_ERR_WRONG_INDEX);
43 hp_make_key(share->keydef + inx, info->lastkey, record);
44 if (!hp_search(info, share->keydef + inx, info->lastkey, 3))
47 DBUG_RETURN(my_errno);
50 memcpy(record,info->current_ptr,(
size_t) share->reclength);
55 DBUG_RETURN(my_errno=HA_ERR_RECORD_DELETED);