diff options
author | Igor Babaev <igor@askmonty.org> | 2013-03-02 12:36:32 -0800 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2013-03-02 12:36:32 -0800 |
commit | bd305d6b21fff141ef888f93d98563ed0e7a37e4 (patch) | |
tree | 9a573ccc802380f3c16f327c391e50af6fbcf0c1 /sql/table.cc | |
parent | 9d72bbf84ccfe6b671cc5aa72109b0025929399e (diff) | |
download | mariadb-git-bd305d6b21fff141ef888f93d98563ed0e7a37e4.tar.gz |
Fixed bug mdev-4220.
This bug is a regression bug. The regression was introduced by
the patch for mdev-3851, that tried to weaken the condition when
a ref access with an extended key can be converted to an eq_ref
access. The patch incorrectly formed this condition. As a result,
while improving performance for some queries, the patch caused
worse performance for another queries.
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/table.cc b/sql/table.cc index fba45f421ed..e33a4b76cdd 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -1003,7 +1003,7 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head, } } if (j == first_key_parts) - keyinfo->ext_key_flags= keyinfo->flags | HA_NOSAME | HA_EXT_NOSAME; + keyinfo->ext_key_flags= keyinfo->flags | HA_EXT_NOSAME; } share->ext_key_parts+= keyinfo->ext_key_parts; } |