Skip to content

Commit 0f44c8a

Browse files
committed
Fix merge error
1 parent d6a7de2 commit 0f44c8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/uniques.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,8 @@ bool Unique::merge(TABLE *table, uchar *buff, bool without_last_merge)
712712
full_size;
713713
sort_param.min_dupl_count= min_dupl_count;
714714
sort_param.res_length= 0;
715-
sort_param.keys= (uint) MY_MAX((max_in_memory_size / sort_param.sort_length),
716-
MERGEBUFF2);
715+
sort_param.max_keys_per_buffer=
716+
(uint) MY_MAX((max_in_memory_size / sort_param.sort_length), MERGEBUFF2);
717717
sort_param.not_killable= 1;
718718

719719
sort_param.unique_buff= buff +(sort_param.max_keys_per_buffer *

0 commit comments

Comments
 (0)