diff options
author | ram@gw.udmsearch.izhnet.ru <> | 2002-04-29 13:53:29 +0500 |
---|---|---|
committer | ram@gw.udmsearch.izhnet.ru <> | 2002-04-29 13:53:29 +0500 |
commit | 06ed215c37c436cf295ae7b91aa4872a50a9642c (patch) | |
tree | 77b9ea9e8c3560b6e82eaad873f24e15f519602d /heap/hp_rlast.c | |
parent | b8a12a8cecf2d277e724827ead7b93a129123362 (diff) | |
download | mariadb-git-06ed215c37c436cf295ae7b91aa4872a50a9642c.tar.gz |
Index number argument
Fix in test results
Diffstat (limited to 'heap/hp_rlast.c')
-rw-r--r-- | heap/hp_rlast.c | 9 |
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; |