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
6c07d55a
Commit
6c07d55a
authored
Sep 19, 2006
by
mikael/pappa@dator5.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge dator5.(none):/home/pappa/clean-mysql-5.1-kt
into dator5.(none):/home/pappa/bug21210
parents
fb2ad12f
3b4ef2a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
sql/ha_partition.cc
sql/ha_partition.cc
+16
-1
sql/ha_partition.h
sql/ha_partition.h
+4
-3
No files found.
sql/ha_partition.cc
View file @
6c07d55a
...
@@ -3663,7 +3663,10 @@ int ha_partition::read_range_first(const key_range *start_key,
...
@@ -3663,7 +3663,10 @@ int ha_partition::read_range_first(const key_range *start_key,
if
(
!
start_key
)
// Read first record
if
(
!
start_key
)
// Read first record
{
{
if
(
m_ordered
)
m_index_scan_type
=
partition_index_first
;
m_index_scan_type
=
partition_index_first
;
else
m_index_scan_type
=
partition_index_first_unordered
;
error
=
common_first_last
(
m_rec0
);
error
=
common_first_last
(
m_rec0
);
}
}
else
else
...
@@ -3877,6 +3880,18 @@ int ha_partition::handle_unordered_scan_next_partition(byte * buf)
...
@@ -3877,6 +3880,18 @@ int ha_partition::handle_unordered_scan_next_partition(byte * buf)
DBUG_PRINT
(
"info"
,
(
"index_first on partition %d"
,
i
));
DBUG_PRINT
(
"info"
,
(
"index_first on partition %d"
,
i
));
error
=
file
->
index_first
(
buf
);
error
=
file
->
index_first
(
buf
);
break
;
break
;
case
partition_index_first_unordered
:
/*
We perform a scan without sorting and this means that we
should not use the index_first since not all handlers
support it and it is also unnecessary to restrict sort
order.
*/
DBUG_PRINT
(
"info"
,
(
"read_range_first on partition %d"
,
i
));
table
->
record
[
0
]
=
buf
;
error
=
file
->
read_range_first
(
0
,
end_range
,
eq_range
,
0
);
table
->
record
[
0
]
=
m_rec0
;
break
;
default:
default:
DBUG_ASSERT
(
FALSE
);
DBUG_ASSERT
(
FALSE
);
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
...
...
sql/ha_partition.h
View file @
6c07d55a
...
@@ -45,9 +45,10 @@ class ha_partition :public handler
...
@@ -45,9 +45,10 @@ class ha_partition :public handler
{
{
partition_index_read
=
0
,
partition_index_read
=
0
,
partition_index_first
=
1
,
partition_index_first
=
1
,
partition_index_last
=
2
,
partition_index_first_unordered
=
2
,
partition_index_read_last
=
3
,
partition_index_last
=
3
,
partition_no_index_scan
=
4
partition_index_read_last
=
4
,
partition_no_index_scan
=
5
};
};
/* Data for the partition handler */
/* Data for the partition handler */
int
m_mode
;
// Open mode
int
m_mode
;
// Open mode
...
...
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