diff options
Diffstat (limited to 'myisammrg')
-rw-r--r-- | myisammrg/myrg_rkey.c | 4 | ||||
-rw-r--r-- | myisammrg/myrg_rnext.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/myisammrg/myrg_rkey.c b/myisammrg/myrg_rkey.c index c907701d50d..6560380622a 100644 --- a/myisammrg/myrg_rkey.c +++ b/myisammrg/myrg_rkey.c @@ -63,7 +63,9 @@ int myrg_rkey(MYRG_INFO *info,byte *record,int inx, const byte *key, } else { - err=_mi_rkey(mi,buf,inx,key_buff,pack_key_length,search_flag,FALSE); + mi->use_packed_key=1; + err=mi_rkey(mi,buf,inx,key_buff,pack_key_length,search_flag); + mi->use_packed_key=0; } info->last_used_table=table+1; diff --git a/myisammrg/myrg_rnext.c b/myisammrg/myrg_rnext.c index 104a94a6f91..d5bc9c54339 100644 --- a/myisammrg/myrg_rnext.c +++ b/myisammrg/myrg_rnext.c @@ -68,8 +68,10 @@ int _myrg_finish_scan(MYRG_INFO *info, int inx, enum ha_rkey_function type) for (; table < info->end_table ; table++) { mi=table->table; - if ((err=_mi_rkey(mi,NULL,inx,key_buff,pack_key_length, - type,FALSE))) + mi->use_packed_key=1; + err=mi_rkey(mi,NULL,inx,key_buff,pack_key_length,type); + mi->use_packed_key=0; + if (err) { if (err == HA_ERR_KEY_NOT_FOUND) /* If end of file */ continue; |