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
add98cd1
Commit
add98cd1
authored
Nov 28, 2002
by
wax@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct view of sort.c and mi_too_big_key_for_sort()
parent
625b57b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
myisam/mi_check.c
myisam/mi_check.c
+1
-4
myisam/sort.c
myisam/sort.c
+7
-6
No files found.
myisam/mi_check.c
View file @
add98cd1
...
...
@@ -3682,10 +3682,7 @@ static my_bool mi_too_big_key_for_sort(MI_KEYDEF *key, ha_rows rows)
key_maxlength
+=
ft_max_word_len_for_sort
-
HA_FT_MAXLEN
;
return
(
key
->
flag
&
(
HA_BINARY_PACK_KEY
|
HA_VAR_LENGTH_KEY
|
HA_FULLTEXT
)
&&
((
ulonglong
)
rows
*
key_maxlength
>
(
ulonglong
)
myisam_max_temp_length
||
(
ulonglong
)
rows
*
(
key_maxlength
-
key
->
minlength
)
/
2
>
myisam_max_extra_temp_length
||
(
rows
==
0
&&
(
key_maxlength
/
key
->
minlength
)
>
2
)));
(
ulonglong
)
myisam_max_temp_length
));
}
...
...
myisam/sort.c
View file @
add98cd1
...
...
@@ -73,13 +73,14 @@ static int NEAR_F merge_index(MI_SORT_PARAM *,uint,uchar **,BUFFPEK *, int,
IO_CACHE
*
);
static
int
NEAR_F
write_keys_varlen
(
MI_SORT_PARAM
*
info
,
uchar
**
sort_keys
,
uint
count
,
BUFFPEK
*
buffpek
,
IO_CACHE
*
tempfile
);
uint
count
,
BUFFPEK
*
buffpek
,
IO_CACHE
*
tempfile
);
static
uint
NEAR_F
read_to_buffer_varlen
(
IO_CACHE
*
fromfile
,
BUFFPEK
*
buffpek
,
uint
sort_length
);
static
int
NEAR_F
write_merge_key
(
MI_SORT_PARAM
*
info
,
IO_CACHE
*
to_file
,
char
*
key
,
uint
sort_length
,
uint
count
)
;
static
int
NEAR_F
write_merge_key_varlen
(
MI_SORT_PARAM
*
info
,
IO_CACHE
*
to_file
,
char
*
key
,
uint
sort_length
,
uint
count
);
static
int
NEAR_F
write_merge_key
(
MI_SORT_PARAM
*
info
,
IO_CACHE
*
to_file
,
char
*
key
,
uint
sort_length
,
uint
count
)
;
static
int
NEAR_F
write_merge_key_varlen
(
MI_SORT_PARAM
*
info
,
IO_CACHE
*
to_file
,
char
*
key
,
uint
sort_length
,
uint
count
);
inline
int
my_var_write
(
MI_SORT_PARAM
*
info
,
IO_CACHE
*
to_file
,
char
*
bufs
);
/*
Creates a index of sorted keys
...
...
@@ -786,7 +787,7 @@ static uint NEAR_F read_to_buffer_varlen(IO_CACHE *fromfile, BUFFPEK *buffpek,
return
((
uint
)
-
1
);
buffpek
->
file_pos
+=
length_of_key
;
buffp
=
buffp
+
sort_length
;
}
}
buffpek
->
key
=
buffpek
->
base
;
buffpek
->
count
-=
count
;
buffpek
->
mem_count
=
count
;
...
...
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