summaryrefslogtreecommitdiff
path: root/sql/filesort.cc
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-01-15 14:09:45 +0200
committermonty@mysql.com <>2005-01-15 14:09:45 +0200
commit0a1076a25f897e4c383cdc5be6b713e65077496b (patch)
treee8856cd37d5a43bd18c06a8834fbfff83c0f4998 /sql/filesort.cc
parent97b28521e6f2735ee6488682b15071f604f66cfd (diff)
parentf34bc883ab4beda7ffd295a89ba62a30f8ccc0e5 (diff)
downloadmariadb-git-0a1076a25f897e4c383cdc5be6b713e65077496b.tar.gz
Merge with 4.1
Diffstat (limited to 'sql/filesort.cc')
-rw-r--r--sql/filesort.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/sql/filesort.cc b/sql/filesort.cc
index b79ea6515c3..ecde74e5ec6 100644
--- a/sql/filesort.cc
+++ b/sql/filesort.cc
@@ -660,10 +660,7 @@ static void make_sortkey(register SORTPARAM *param,
}
uint tmp_length=my_strnxfrm(cs,to,sort_field->length,
(unsigned char *) from, length);
- if (tmp_length < sort_field->length)
- cs->cset->fill(cs, (char*) to+tmp_length,
- sort_field->length-tmp_length,
- fill_char);
+ DBUG_ASSERT(tmp_length == sort_field->length);
}
else
{
@@ -844,7 +841,8 @@ int merge_many_buff(SORTPARAM *param, uchar *sort_buffer,
if (flush_io_cache(to_file))
break; /* purecov: inspected */
temp=from_file; from_file=to_file; to_file=temp;
-
+ setup_io_cache(from_file);
+ setup_io_cache(to_file);
*maxbuffer= (uint) (lastbuff-buffpek)-1;
}
close_cached_file(to_file); // This holds old result