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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
b78f6240
Commit
b78f6240
authored
Dec 10, 2010
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong merge of patch for Bug#46639.
parent
077d96c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
39 deletions
+0
-39
sql/ha_partition.cc
sql/ha_partition.cc
+0
-39
No files found.
sql/ha_partition.cc
View file @
b78f6240
...
@@ -4640,19 +4640,6 @@ int ha_partition::handle_unordered_scan_next_partition(uchar * buf)
...
@@ -4640,19 +4640,6 @@ int ha_partition::handle_unordered_scan_next_partition(uchar * buf)
break
;
break
;
case
partition_index_first
:
case
partition_index_first
:
DBUG_PRINT
(
"info"
,
(
"index_first on partition %d"
,
i
));
DBUG_PRINT
(
"info"
,
(
"index_first on partition %d"
,
i
));
/*
MyISAM engine can fail if we call index_first() when indexes disabled
that happens if the table is empty.
Here we use file->stats.records instead of file->records() because
file->records() is supposed to return an EXACT count, and it can be
possibly slow. We don't need an exact number, an approximate one- from
the last ::info() call - is sufficient.
*/
if
(
file
->
stats
.
records
==
0
)
{
error
=
HA_ERR_END_OF_FILE
;
break
;
}
error
=
file
->
ha_index_first
(
buf
);
error
=
file
->
ha_index_first
(
buf
);
break
;
break
;
case
partition_index_first_unordered
:
case
partition_index_first_unordered
:
...
@@ -4740,36 +4727,10 @@ int ha_partition::handle_ordered_index_scan(uchar *buf, bool reverse_order)
...
@@ -4740,36 +4727,10 @@ int ha_partition::handle_ordered_index_scan(uchar *buf, bool reverse_order)
m_start_key
.
flag
);
m_start_key
.
flag
);
break
;
break
;
case
partition_index_first
:
case
partition_index_first
:
/*
MyISAM engine can fail if we call index_first() when indexes disabled
that happens if the table is empty.
Here we use file->stats.records instead of file->records() because
file->records() is supposed to return an EXACT count, and it can be
possibly slow. We don't need an exact number, an approximate one- from
the last ::info() call - is sufficient.
*/
if
(
file
->
stats
.
records
==
0
)
{
error
=
HA_ERR_END_OF_FILE
;
break
;
}
error
=
file
->
ha_index_first
(
rec_buf_ptr
);
error
=
file
->
ha_index_first
(
rec_buf_ptr
);
reverse_order
=
FALSE
;
reverse_order
=
FALSE
;
break
;
break
;
case
partition_index_last
:
case
partition_index_last
:
/*
MyISAM engine can fail if we call index_last() when indexes disabled
that happens if the table is empty.
Here we use file->stats.records instead of file->records() because
file->records() is supposed to return an EXACT count, and it can be
possibly slow. We don't need an exact number, an approximate one- from
the last ::info() call - is sufficient.
*/
if
(
file
->
stats
.
records
==
0
)
{
error
=
HA_ERR_END_OF_FILE
;
break
;
}
error
=
file
->
ha_index_last
(
rec_buf_ptr
);
error
=
file
->
ha_index_last
(
rec_buf_ptr
);
reverse_order
=
TRUE
;
reverse_order
=
TRUE
;
break
;
break
;
...
...
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