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
58b95073
Commit
58b95073
authored
Feb 12, 2019
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-17096 Pushdown of simple derived tables to storage engines
Added plugin system variable federated_pushdown.
parent
d11be239
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
mysql-test/suite/federated/federatedx_create_handlers.test
mysql-test/suite/federated/federatedx_create_handlers.test
+4
-0
storage/federatedx/federatedx_pushdown.cc
storage/federatedx/federatedx_pushdown.cc
+6
-0
storage/federatedx/ha_federatedx.cc
storage/federatedx/ha_federatedx.cc
+8
-2
No files found.
mysql-test/suite/federated/federatedx_create_handlers.test
View file @
58b95073
--
source
have_federatedx
.
inc
--
source
include
/
federated
.
inc
set
global
federated_pushdown
=
1
;
connection
slave
;
DROP
TABLE
IF
EXISTS
federated
.
t1
;
...
...
@@ -152,3 +154,5 @@ DROP TABLE federated.t1, federated.t2;
connection
default
;
source
include
/
federated_cleanup
.
inc
;
set
global
federated_pushdown
=
0
;
storage/federatedx/federatedx_pushdown.cc
View file @
58b95073
...
...
@@ -19,6 +19,9 @@
static
derived_handler
*
create_federatedx_derived_handler
(
THD
*
thd
,
TABLE_LIST
*
derived
)
{
if
(
!
use_pushdown
)
return
0
;
ha_federatedx_derived_handler
*
handler
=
NULL
;
handlerton
*
ht
=
0
;
...
...
@@ -144,6 +147,9 @@ void ha_federatedx_derived_handler::print_error(int, unsigned long)
static
select_handler
*
create_federatedx_select_handler
(
THD
*
thd
,
SELECT_LEX
*
sel
)
{
if
(
!
use_pushdown
)
return
0
;
ha_federatedx_select_handler
*
handler
=
NULL
;
handlerton
*
ht
=
0
;
...
...
storage/federatedx/ha_federatedx.cc
View file @
58b95073
...
...
@@ -3677,11 +3677,17 @@ int ha_federatedx::discover_assisted(handlerton *hton, THD* thd,
return
error
;
}
#include "federatedx_pushdown.cc"
struct
st_mysql_storage_engine
federatedx_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
my_bool
use_pushdown
;
static
MYSQL_SYSVAR_BOOL
(
pushdown
,
use_pushdown
,
0
,
"Use query fragments pushdown capabilities"
,
NULL
,
NULL
,
FALSE
);
static
struct
st_mysql_sys_var
*
sysvars
[]
=
{
MYSQL_SYSVAR
(
pushdown
)
};
#include "federatedx_pushdown.cc"
maria_declare_plugin
(
federatedx
)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
...
...
@@ -3694,7 +3700,7 @@ maria_declare_plugin(federatedx)
federatedx_done
,
/* Plugin Deinit */
0x0201
/* 2.1 */
,
NULL
,
/* status variables */
NULL
,
/* system variables */
sysvars
,
/* system variables */
"2.1"
,
/* string version */
MariaDB_PLUGIN_MATURITY_STABLE
/* maturity */
}
...
...
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