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
25a1fdd1
Commit
25a1fdd1
authored
Nov 21, 2016
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied patch 001_mariadb-10.0.15.partition_cond_push.diff
- Added cond_push() and cond_pop() to ha_partition.cc
parent
c57e1bf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
sql/ha_partition.cc
sql/ha_partition.cc
+33
-0
sql/ha_partition.h
sql/ha_partition.h
+8
-0
No files found.
sql/ha_partition.cc
View file @
25a1fdd1
...
...
@@ -9142,6 +9142,39 @@ TABLE_LIST *ha_partition::get_next_global_for_child()
}
const
COND
*
ha_partition
::
cond_push
(
const
COND
*
cond
)
{
handler
**
file
=
m_file
;
COND
*
res_cond
=
NULL
;
DBUG_ENTER
(
"ha_partition::cond_push"
);
do
{
if
((
*
file
)
->
pushed_cond
!=
cond
)
{
if
((
*
file
)
->
cond_push
(
cond
))
res_cond
=
(
COND
*
)
cond
;
else
(
*
file
)
->
pushed_cond
=
cond
;
}
}
while
(
*
(
++
file
));
DBUG_RETURN
(
res_cond
);
}
void
ha_partition
::
cond_pop
()
{
handler
**
file
=
m_file
;
DBUG_ENTER
(
"ha_partition::cond_push"
);
do
{
(
*
file
)
->
cond_pop
();
}
while
(
*
(
++
file
));
DBUG_VOID_RETURN
;
}
struct
st_mysql_storage_engine
partition_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
...
...
sql/ha_partition.h
View file @
25a1fdd1
...
...
@@ -1198,6 +1198,14 @@ class ha_partition :public handler
virtual
bool
is_crashed
()
const
;
virtual
int
check_for_upgrade
(
HA_CHECK_OPT
*
check_opt
);
/*
-------------------------------------------------------------------------
MODULE condition pushdown
-------------------------------------------------------------------------
*/
virtual
const
COND
*
cond_push
(
const
COND
*
cond
);
virtual
void
cond_pop
();
private:
int
handle_opt_partitions
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
,
uint
flags
);
int
handle_opt_part
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
,
uint
part_id
,
...
...
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