diff options
author | monty@mysql.com <> | 2005-01-15 14:09:45 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2005-01-15 14:09:45 +0200 |
commit | 0a1076a25f897e4c383cdc5be6b713e65077496b (patch) | |
tree | e8856cd37d5a43bd18c06a8834fbfff83c0f4998 /sql/filesort.cc | |
parent | 97b28521e6f2735ee6488682b15071f604f66cfd (diff) | |
parent | f34bc883ab4beda7ffd295a89ba62a30f8ccc0e5 (diff) | |
download | mariadb-git-0a1076a25f897e4c383cdc5be6b713e65077496b.tar.gz |
Merge with 4.1
Diffstat (limited to 'sql/filesort.cc')
-rw-r--r-- | sql/filesort.cc | 8 |
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 |