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
d1e4ecec
Commit
d1e4ecec
authored
Nov 15, 2017
by
Michael Widenius
Committed by
Monty
Dec 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spider fix: Stop searching next when m_top_entry=NO_CURRENT_PART_ID
parent
352feb49
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
sql/ha_partition.cc
sql/ha_partition.cc
+11
-3
No files found.
sql/ha_partition.cc
View file @
d1e4ecec
...
...
@@ -7715,10 +7715,14 @@ int ha_partition::handle_ordered_index_scan_key_not_found()
int
ha_partition
::
handle_ordered_next
(
uchar
*
buf
,
bool
is_next_same
)
{
int
error
;
DBUG_ENTER
(
"ha_partition::handle_ordered_next"
);
if
(
m_top_entry
==
NO_CURRENT_PART_ID
)
DBUG_RETURN
(
HA_ERR_END_OF_FILE
);
uint
part_id
=
m_top_entry
;
uchar
*
rec_buf
=
queue_top
(
&
m_queue
)
+
PARTITION_BYTES_IN_POS
;
handler
*
file
;
DBUG_ENTER
(
"ha_partition::handle_ordered_next"
);
if
(
m_key_not_found
)
{
...
...
@@ -7930,11 +7934,15 @@ int ha_partition::handle_ordered_next(uchar *buf, bool is_next_same)
int
ha_partition
::
handle_ordered_prev
(
uchar
*
buf
)
{
int
error
;
DBUG_ENTER
(
"ha_partition::handle_ordered_prev"
);
DBUG_PRINT
(
"enter"
,
(
"partition: %p"
,
this
));
if
(
m_top_entry
==
NO_CURRENT_PART_ID
)
DBUG_RETURN
(
HA_ERR_END_OF_FILE
);
uint
part_id
=
m_top_entry
;
uchar
*
rec_buf
=
queue_top
(
&
m_queue
)
+
PARTITION_BYTES_IN_POS
;
handler
*
file
=
m_file
[
part_id
];
DBUG_ENTER
(
"ha_partition::handle_ordered_prev"
);
DBUG_PRINT
(
"enter"
,
(
"partition: %p"
,
this
));
if
((
error
=
file
->
ha_index_prev
(
rec_buf
)))
{
...
...
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