mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 02:30:06 +01:00
cleanup: Typo fix appliccable -> applicable
This commit is contained in:
parent
bcd5454beb
commit
987fcf9197
4 changed files with 4 additions and 4 deletions
|
@ -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 @@
|
||||||
|
|
||||||
/* 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)
|
||||||
#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)
|
||||||
|
|
||||||
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))))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue