mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
Merge bk-internal:/home/bk/mysql-4.0/
into serg.mylan:/usr/home/serg/Abk/mysql-4.0 myisam/mi_check.c: Auto merged
This commit is contained in:
commit
b52da698f1
1 changed files with 4 additions and 1 deletions
|
|
@ -3686,6 +3686,9 @@ void update_key_parts(MI_KEYDEF *keyinfo, ulong *rec_per_key_part,
|
|||
tmp=records;
|
||||
else
|
||||
tmp= (records + (count+1)/2) / (count+1);
|
||||
/* for some weird keys (e.g. FULLTEXT) tmp can be <1 here.
|
||||
let's ensure it is not */
|
||||
set_if_bigger(tmp,1);
|
||||
if (tmp >= (ulonglong) ~(ulong) 0)
|
||||
tmp=(ulonglong) ~(ulong) 0;
|
||||
*rec_per_key_part=(ulong) tmp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue