diff options
Diffstat (limited to 'storage/myisam/sort.c')
-rw-r--r-- | storage/myisam/sort.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/storage/myisam/sort.c b/storage/myisam/sort.c index 910867b13a8..6fe38a3fd04 100644 --- a/storage/myisam/sort.c +++ b/storage/myisam/sort.c @@ -194,9 +194,8 @@ int _create_index_by_sort(MI_SORT_PARAM *info,my_bool no_messages, (size_t) (keys*(sort_length+sizeof(char*))+ HA_FT_MAXBYTELEN), MYF(0))))) { - if (my_init_dynamic_array(&buffpek, PSI_INSTRUMENT_ME, - sizeof(BUFFPEK), maxbuffer, - MY_MIN(maxbuffer/2, 1000), MYF(0))) + if (my_init_dynamic_array(PSI_INSTRUMENT_ME, &buffpek, sizeof(BUFFPEK), + maxbuffer, MY_MIN(maxbuffer/2, 1000), MYF(0))) { my_free(sort_keys); sort_keys= 0; @@ -413,7 +412,7 @@ static my_bool thr_find_all_keys_exec(MI_SORT_PARAM *sort_param) ((sort_param->keyinfo->flag & HA_FULLTEXT) ? HA_FT_MAXBYTELEN : 0)), MYF(0)))) { - if (my_init_dynamic_array(&sort_param->buffpek, PSI_INSTRUMENT_ME, + if (my_init_dynamic_array(PSI_INSTRUMENT_ME, &sort_param->buffpek, sizeof(BUFFPEK), maxbuffer, MY_MIN(maxbuffer / 2, 1000), MYF(0))) { |