summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-01-05 22:51:42 +0200
committermonty@hundin.mysql.fi <>2002-01-05 22:51:42 +0200
commitff173891169e92c38ac88fcc7b836f616ac3b1db (patch)
treeaee8644482b4b6ee28e2b60a28829fa32f99a2b0 /myisam
parentfd81437a6b91b28fd89aca4dedffa5f5d7e6e685 (diff)
downloadmariadb-git-ff173891169e92c38ac88fcc7b836f616ac3b1db.tar.gz
Fix for FLUSH QUERY CACHE
Fix for new bug in CREATE TABLE when sorting keys.
Diffstat (limited to 'myisam')
-rw-r--r--myisam/ft_dump.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/myisam/ft_dump.c b/myisam/ft_dump.c
index a693878acd9..6308694b58e 100644
--- a/myisam/ft_dump.c
+++ b/myisam/ft_dump.c
@@ -33,7 +33,7 @@ static uint lengths[256];
int main(int argc,char *argv[])
{
int error=0;
- uint keylen, keylen2, inx, doc_cnt=0;
+ uint keylen, keylen2=0, inx, doc_cnt=0;
float weight;
double gws, min_gws=0, avg_gws=0;
MI_INFO *info;
@@ -151,7 +151,7 @@ int main(int argc,char *argv[])
for (inx=0;inx<256;inx++)
{
count+=lengths[inx];
- if (count >= total/2)
+ if ((ulong) count >= total/2)
break;
}
printf("Total rows: %qu\nTotal words: %lu\n"
@@ -170,7 +170,8 @@ int main(int argc,char *argv[])
count+=lengths[inx];
if (count && lengths[inx])
printf("%3u: %10lu %5.2f%% %20lu %4.1f%%\n", inx,
- lengths[inx],100.0*lengths[inx]/total,count, 100.0*count/total);
+ (ulong) lengths[inx],100.0*lengths[inx]/total,(ulong) count,
+ 100.0*count/total);
}
}
}