Commit 987fcf91 authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru Committed by Sergei Petrunia

cleanup: Typo fix appliccable -> applicable

parent bcd5454b
...@@ -782,7 +782,7 @@ extern int flush_write_cache(RECORD_CACHE *info); ...@@ -782,7 +782,7 @@ extern int flush_write_cache(RECORD_CACHE *info);
extern void handle_recived_signals(void); extern void handle_recived_signals(void);
extern sig_handler my_set_alarm_variable(int signo); extern sig_handler my_set_alarm_variable(int signo);
extern my_bool radixsort_is_appliccable(uint n_items, size_t size_of_element); extern my_bool radixsort_is_applicable(uint n_items, size_t size_of_element);
extern void my_string_ptr_sort(uchar *base,uint items,size_t size); extern void my_string_ptr_sort(uchar *base,uint items,size_t size);
extern void radixsort_for_str_ptr(uchar* base[], uint number_of_elements, extern void radixsort_for_str_ptr(uchar* base[], uint number_of_elements,
size_t size_of_element,uchar *buffer[]); size_t size_of_element,uchar *buffer[]);
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
/* Radixsort */ /* Radixsort */
my_bool radixsort_is_appliccable(uint n_items, size_t size_of_element) my_bool radixsort_is_applicable(uint n_items, size_t size_of_element)
{ {
return size_of_element <= 20 && n_items >= 1000 && n_items < 100000; return size_of_element <= 20 && n_items >= 1000 && n_items < 100000;
} }
......
...@@ -23,7 +23,7 @@ void my_string_ptr_sort(uchar *base, uint items, size_t size) ...@@ -23,7 +23,7 @@ void my_string_ptr_sort(uchar *base, uint items, size_t size)
#if INT_MAX > 65536L #if INT_MAX > 65536L
uchar **ptr=0; uchar **ptr=0;
if (radixsort_is_appliccable(items, size) && if (radixsort_is_applicable(items, size) &&
(ptr= (uchar**) my_malloc(PSI_NOT_INSTRUMENTED, (ptr= (uchar**) my_malloc(PSI_NOT_INSTRUMENTED,
items * sizeof(char*),MYF(0)))) items * sizeof(char*),MYF(0))))
{ {
......
...@@ -173,7 +173,7 @@ void Filesort_buffer::sort_buffer(const Sort_param *param, uint count) ...@@ -173,7 +173,7 @@ void Filesort_buffer::sort_buffer(const Sort_param *param, uint count)
uchar **buffer= NULL; uchar **buffer= NULL;
if (!param->using_packed_sortkeys() && if (!param->using_packed_sortkeys() &&
radixsort_is_appliccable(count, param->sort_length) && radixsort_is_applicable(count, param->sort_length) &&
(buffer= (uchar**) my_malloc(PSI_INSTRUMENT_ME, count*sizeof(char*), (buffer= (uchar**) my_malloc(PSI_INSTRUMENT_ME, count*sizeof(char*),
MYF(MY_THREAD_SPECIFIC)))) MYF(MY_THREAD_SPECIFIC))))
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment