summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <lenz@mysql.com>2002-10-09 21:03:59 +0200
committerunknown <lenz@mysql.com>2002-10-09 21:03:59 +0200
commit7bfbfc822e3550bc9279e86f068e7195b3e80066 (patch)
tree0fb94916a2f3924b49d7fe1f4e362ce5c902fb2e /myisam
parentf984ad0fbb07f0787e558eccd61004f516cd995e (diff)
parent8e603638214259739116e4b59a250868ade9d3be (diff)
downloadmariadb-git-7bfbfc822e3550bc9279e86f068e7195b3e80066.tar.gz
Merge
Docs/manual.texi: SCCS merged
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_check.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/myisam/mi_check.c b/myisam/mi_check.c
index 4669566fc8f..9e591325c1c 100644
--- a/myisam/mi_check.c
+++ b/myisam/mi_check.c
@@ -2529,7 +2529,7 @@ static int sort_ft_key_read(MI_SORT_PARAM *sort_param, void *key)
if (!sort_param->wordlist)
{
- do
+ for (;;)
{
my_free((char*) wptr, MYF(MY_ALLOW_ZERO_PTR));
if ((error=sort_get_next_record(sort_param)))
@@ -2537,9 +2537,10 @@ static int sort_ft_key_read(MI_SORT_PARAM *sort_param, void *key)
if (!(wptr=_mi_ft_parserecord(info,sort_param->key,
key,sort_param->record)))
DBUG_RETURN(1);
+ if (wptr->pos)
+ break;
error=sort_write_record(sort_param);
}
- while (!wptr->pos);
sort_param->wordptr=sort_param->wordlist=wptr;
}
else
@@ -2560,6 +2561,7 @@ static int sort_ft_key_read(MI_SORT_PARAM *sort_param, void *key)
{
my_free((char*) sort_param->wordlist, MYF(0));
sort_param->wordlist=0;
+ error=sort_write_record(sort_param);
}
else
sort_param->wordptr=(void*)wptr;