Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
987fcf91
Commit
987fcf91
authored
Jul 02, 2022
by
Vicențiu Ciorbaru
Committed by
Sergei Petrunia
Jan 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: Typo fix appliccable -> applicable
parent
bcd5454b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
include/my_sys.h
include/my_sys.h
+1
-1
mysys/mf_radix.c
mysys/mf_radix.c
+1
-1
mysys/mf_sort.c
mysys/mf_sort.c
+1
-1
sql/filesort_utils.cc
sql/filesort_utils.cc
+1
-1
No files found.
include/my_sys.h
View file @
987fcf91
...
...
@@ -782,7 +782,7 @@ extern int flush_write_cache(RECORD_CACHE *info);
extern
void
handle_recived_signals
(
void
);
extern
sig_handler
my_set_alarm_variable
(
int
signo
);
extern
my_bool
radixsort_is_applic
c
able
(
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
radixsort_for_str_ptr
(
uchar
*
base
[],
uint
number_of_elements
,
size_t
size_of_element
,
uchar
*
buffer
[]);
...
...
mysys/mf_radix.c
View file @
987fcf91
...
...
@@ -26,7 +26,7 @@
/* Radixsort */
my_bool
radixsort_is_applic
c
able
(
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
;
}
...
...
mysys/mf_sort.c
View file @
987fcf91
...
...
@@ -23,7 +23,7 @@ void my_string_ptr_sort(uchar *base, uint items, size_t size)
#if INT_MAX > 65536L
uchar
**
ptr
=
0
;
if
(
radixsort_is_applic
c
able
(
items
,
size
)
&&
if
(
radixsort_is_applicable
(
items
,
size
)
&&
(
ptr
=
(
uchar
**
)
my_malloc
(
PSI_NOT_INSTRUMENTED
,
items
*
sizeof
(
char
*
),
MYF
(
0
))))
{
...
...
sql/filesort_utils.cc
View file @
987fcf91
...
...
@@ -173,7 +173,7 @@ void Filesort_buffer::sort_buffer(const Sort_param *param, uint count)
uchar
**
buffer
=
NULL
;
if
(
!
param
->
using_packed_sortkeys
()
&&
radixsort_is_applic
c
able
(
count
,
param
->
sort_length
)
&&
radixsort_is_applicable
(
count
,
param
->
sort_length
)
&&
(
buffer
=
(
uchar
**
)
my_malloc
(
PSI_INSTRUMENT_ME
,
count
*
sizeof
(
char
*
),
MYF
(
MY_THREAD_SPECIFIC
))))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment