summaryrefslogtreecommitdiff
path: root/heap/hp_rlast.c
diff options
context:
space:
mode:
authorram@gw.udmsearch.izhnet.ru <>2002-04-29 13:53:29 +0500
committerram@gw.udmsearch.izhnet.ru <>2002-04-29 13:53:29 +0500
commit06ed215c37c436cf295ae7b91aa4872a50a9642c (patch)
tree77b9ea9e8c3560b6e82eaad873f24e15f519602d /heap/hp_rlast.c
parentb8a12a8cecf2d277e724827ead7b93a129123362 (diff)
downloadmariadb-git-06ed215c37c436cf295ae7b91aa4872a50a9642c.tar.gz
Index number argument
Fix in test results
Diffstat (limited to 'heap/hp_rlast.c')
-rw-r--r--heap/hp_rlast.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/heap/hp_rlast.c b/heap/hp_rlast.c
index 7f883d3a18b..4c2379427b0 100644
--- a/heap/hp_rlast.c
+++ b/heap/hp_rlast.c
@@ -19,15 +19,12 @@
/* Read first record with the current key */
-int heap_rlast(HP_INFO *info, byte *record)
+int heap_rlast(HP_INFO *info, byte *record, int inx)
{
- HP_SHARE *share = info->s;
- HP_KEYDEF *keyinfo;
+ HP_SHARE *share= info->s;
+ HP_KEYDEF *keyinfo= share->keydef + inx;
DBUG_ENTER("heap_rlast");
- if (info->lastinx < 0)
- DBUG_RETURN(my_errno = HA_ERR_WRONG_INDEX);
- keyinfo = share->keydef + info->lastinx;
if (keyinfo->algorithm == HA_KEY_ALG_BTREE)
{
byte *pos;