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
c4811d67
Commit
c4811d67
authored
Aug 24, 2007
by
holyfoot/hf@hfmain.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk@192.168.21.1:mysql-5.1-opt
into mysql.com:/home/hf/work/28430/my51-28430
parents
64bcb0da
afe7de82
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
mysql-test/r/partition_pruning.result
mysql-test/r/partition_pruning.result
+2
-2
sql/ha_partition.cc
sql/ha_partition.cc
+13
-1
sql/ha_partition.h
sql/ha_partition.h
+1
-0
No files found.
mysql-test/r/partition_pruning.result
View file @
c4811d67
...
...
@@ -631,7 +631,7 @@ flush status;
delete from t2 where b > 5;
show status like 'Handler_read_rnd_next';
Variable_name Value
Handler_read_rnd_next 1
2
15
Handler_read_rnd_next 1
1
15
show status like 'Handler_read_key';
Variable_name Value
Handler_read_key 0
...
...
@@ -645,7 +645,7 @@ flush status;
delete from t2 where b < 5 or b > 3;
show status like 'Handler_read_rnd_next';
Variable_name Value
Handler_read_rnd_next 1
2
15
Handler_read_rnd_next 1
1
15
show status like 'Handler_read_key';
Variable_name Value
Handler_read_key 0
...
...
sql/ha_partition.cc
View file @
c4811d67
...
...
@@ -3235,9 +3235,14 @@ int ha_partition::rnd_next(uchar *buf)
void
ha_partition
::
position
(
const
uchar
*
record
)
{
handler
*
file
=
m_file
[
m_last_part
]
;
handler
*
file
;
DBUG_ENTER
(
"ha_partition::position"
);
if
(
unlikely
(
get_part_for_delete
(
record
,
m_rec0
,
m_part_info
,
&
m_last_part
)))
m_last_part
=
0
;
file
=
m_file
[
m_last_part
];
file
->
position
(
record
);
int2store
(
ref
,
m_last_part
);
memcpy
((
ref
+
PARTITION_BYTES_IN_POS
),
file
->
ref
,
...
...
@@ -5587,6 +5592,13 @@ int ha_partition::indexes_are_disabled(void)
}
void
ha_partition
::
column_bitmaps_signal
()
{
handler
::
column_bitmaps_signal
();
bitmap_union
(
table
->
read_set
,
&
m_part_info
->
full_part_field_set
);
}
/****************************************************************************
MODULE Partition Share
****************************************************************************/
...
...
sql/ha_partition.h
View file @
c4811d67
...
...
@@ -449,6 +449,7 @@ class ha_partition :public handler
int
handle_ordered_next
(
uchar
*
buf
,
bool
next_same
);
int
handle_ordered_prev
(
uchar
*
buf
);
void
return_top_record
(
uchar
*
buf
);
void
column_bitmaps_signal
();
public:
/*
-------------------------------------------------------------------------
...
...
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