diff options
author | unknown <serg@serg.mysql.com> | 2003-03-02 01:52:02 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2003-03-02 01:52:02 +0100 |
commit | a2cc82182bbebb24a75e2d54d5361b3932416b9c (patch) | |
tree | 6a0432183b17998d8ffb6c0db7fe2ae56db83cca /myisam/mi_check.c | |
parent | 14ea63cd1bfb3b2ebc95bd93d2b6373689e45604 (diff) | |
parent | 6a933b2e08037a4fb17ea98abf00d0990cef22ae (diff) | |
download | mariadb-git-a2cc82182bbebb24a75e2d54d5361b3932416b9c.tar.gz |
Merge work:/home/bk/mysql-4.0
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.0
Diffstat (limited to 'myisam/mi_check.c')
-rw-r--r-- | myisam/mi_check.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c index 67a7d6f363d..ca5c8f9ecb4 100644 --- a/myisam/mi_check.c +++ b/myisam/mi_check.c @@ -3694,8 +3694,8 @@ void mi_disable_non_unique_index(MI_INFO *info, ha_rows rows) MI_KEYDEF *key=share->keyinfo; for (i=0 ; i < share->base.keys ; i++,key++) { - if (!(key->flag & HA_NOSAME) && ! mi_too_big_key_for_sort(key,rows) && - info->s->base.auto_key != i+1) + if (!(key->flag & (HA_NOSAME|HA_AUTO_KEY)) && + ! mi_too_big_key_for_sort(key,rows)) { share->state.key_map&= ~ ((ulonglong) 1 << i); info->update|= HA_STATE_CHANGED; |