mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
replace mi_rrnd() in myrg_rkey family to more intelligent (HA_KEYREAD-aware) read function
This commit is contained in:
parent
687ebba461
commit
77e16415dc
7 changed files with 18 additions and 8 deletions
|
|
@ -36,7 +36,7 @@
|
|||
SerG
|
||||
*/
|
||||
|
||||
int myrg_rkey(MYRG_INFO *info,byte *record,int inx, const byte *key,
|
||||
int myrg_rkey(MYRG_INFO *info,byte *buf,int inx, const byte *key,
|
||||
uint key_len, enum ha_rkey_function search_flag)
|
||||
{
|
||||
byte *key_buff;
|
||||
|
|
@ -83,5 +83,5 @@ int myrg_rkey(MYRG_INFO *info,byte *record,int inx, const byte *key,
|
|||
return HA_ERR_KEY_NOT_FOUND;
|
||||
|
||||
mi=(info->current_table=(MYRG_TABLE *)queue_top(&(info->by_key)))->table;
|
||||
return mi_rrnd(mi,record,mi->lastpos);
|
||||
return _myrg_mi_read_record(mi,buf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue