1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

a fix (bug #4198: Incorrect key file for table).

This commit is contained in:
ram@gw.mysql.r18.ru
2004-06-21 15:17:07 +05:00
parent 4680a23867
commit df727fbb65
3 changed files with 23 additions and 1 deletions

View File

@ -5972,7 +5972,8 @@ join_read_const_table(JOIN_TAB *tab, POSITION *pos)
else
{
if (!table->key_read && table->used_keys.is_set(tab->ref.key) &&
!table->no_keyread)
!table->no_keyread &&
(int) table->reginfo.lock_type <= (int) TL_READ_HIGH_PRIORITY)
{
table->key_read=1;
table->file->extra(HA_EXTRA_KEYREAD);