diff options
author | Igor Babaev <igor@askmonty.org> | 2019-02-12 13:11:32 -0800 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2019-02-12 13:11:32 -0800 |
commit | 58b950737c547df42c82744029cbcad235e0efd9 (patch) | |
tree | bd30f4738bf7ba870bd1c4304d5209fffbeb005d /storage/federatedx/ha_federatedx.cc | |
parent | d11be23933def394585fae83a6f1ab561e3736f2 (diff) | |
download | mariadb-git-58b950737c547df42c82744029cbcad235e0efd9.tar.gz |
MDEV-17096 Pushdown of simple derived tables to storage engines
Added plugin system variable federated_pushdown.
Diffstat (limited to 'storage/federatedx/ha_federatedx.cc')
-rw-r--r-- | storage/federatedx/ha_federatedx.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/storage/federatedx/ha_federatedx.cc b/storage/federatedx/ha_federatedx.cc index 918fbef711a..f55b0bc779d 100644 --- a/storage/federatedx/ha_federatedx.cc +++ b/storage/federatedx/ha_federatedx.cc @@ -3677,11 +3677,17 @@ err1: 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 */ } |