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
a937a4fa
Commit
a937a4fa
authored
Sep 26, 2002
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do filesort if handler has the HA_NOT_READ_PREFIX_LAST flag set.
parent
663b983f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
mysys/my_symlink.c
mysys/my_symlink.c
+4
-0
sql/sql_select.cc
sql/sql_select.cc
+1
-1
No files found.
mysys/my_symlink.c
View file @
a937a4fa
...
...
@@ -115,11 +115,15 @@ int my_realpath(char *to, const char *filename, myf MyFlags)
(
!
lstat
(
filename
,
&
stat_buff
)
&&
S_ISLNK
(
stat_buff
.
st_mode
)))
{
char
*
ptr
;
DBUG_PRINT
(
"info"
,(
"executing realpath"
));
if
((
ptr
=
realpath
(
filename
,
buff
)))
{
strmake
(
to
,
ptr
,
FN_REFLEN
-
1
);
}
else
{
/* Realpath didn't work; Use original name */
DBUG_PRINT
(
"error"
,(
"realpath failed with errno: %d"
,
errno
));
my_errno
=
errno
;
if
(
MyFlags
&
MY_WME
)
my_error
(
EE_REALPATH
,
MYF
(
0
),
filename
,
my_errno
);
...
...
sql/sql_select.cc
View file @
a937a4fa
...
...
@@ -5577,7 +5577,7 @@ test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit,
with key part (A) and then traverse the index backwards.
*/
if
(
table
->
file
->
table_flags
()
&
HA_NOT_READ_PREFIX_LAST
)
DBUG_RETURN
(
1
);
DBUG_RETURN
(
0
);
// Use filesort
tab
->
read_first_record
=
join_read_last_key
;
tab
->
read_record
.
read_record
=
join_read_prev_same
;
/* fall through */
...
...
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