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
ea5b6a6c
Commit
ea5b6a6c
authored
Jul 08, 2019
by
Will DeVries
Committed by
Sergei Petrunia
Mar 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't include ha_clustrix_pushdown.cc file in ha_clustrix.cc.
parent
d94a32be
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
7 deletions
+13
-7
storage/clustrixdb/CMakeLists.txt
storage/clustrixdb/CMakeLists.txt
+1
-1
storage/clustrixdb/ha_clustrixdb.cc
storage/clustrixdb/ha_clustrixdb.cc
+1
-2
storage/clustrixdb/ha_clustrixdb.h
storage/clustrixdb/ha_clustrixdb.h
+2
-1
storage/clustrixdb/ha_clustrixdb_pushdown.cc
storage/clustrixdb/ha_clustrixdb_pushdown.cc
+5
-2
storage/clustrixdb/ha_clustrixdb_pushdown.h
storage/clustrixdb/ha_clustrixdb_pushdown.h
+4
-1
No files found.
storage/clustrixdb/CMakeLists.txt
View file @
ea5b6a6c
...
@@ -11,7 +11,7 @@ ENDIF()
...
@@ -11,7 +11,7 @@ ENDIF()
SET
(
CLUSTRIXDB_PLUGIN_STATIC
"clustrixdb"
)
SET
(
CLUSTRIXDB_PLUGIN_STATIC
"clustrixdb"
)
SET
(
CLUSTRIXDB_PLUGIN_DYNAMIC
"ha_clustrixdb"
)
SET
(
CLUSTRIXDB_PLUGIN_DYNAMIC
"ha_clustrixdb"
)
SET
(
CLUSTRIXDB_SOURCES ha_clustrixdb.cc clustrix_connection.cc
)
SET
(
CLUSTRIXDB_SOURCES ha_clustrixdb.cc clustrix_connection.cc
ha_clustrixdb_pushdown.cc
)
MYSQL_ADD_PLUGIN
(
clustrixdb
${
CLUSTRIXDB_SOURCES
}
STORAGE_ENGINE
)
MYSQL_ADD_PLUGIN
(
clustrixdb
${
CLUSTRIXDB_SOURCES
}
STORAGE_ENGINE
)
IF
(
MSVC
)
IF
(
MSVC
)
...
...
storage/clustrixdb/ha_clustrixdb.cc
View file @
ea5b6a6c
...
@@ -5,6 +5,7 @@ Copyright (c) 2019, MariaDB Corporation.
...
@@ -5,6 +5,7 @@ Copyright (c) 2019, MariaDB Corporation.
/** @file ha_clustrixdb.cc */
/** @file ha_clustrixdb.cc */
#include "ha_clustrixdb.h"
#include "ha_clustrixdb.h"
#include "ha_clustrixdb_pushdown.h"
#include "key.h"
#include "key.h"
handlerton
*
clustrixdb_hton
=
NULL
;
handlerton
*
clustrixdb_hton
=
NULL
;
...
@@ -1016,8 +1017,6 @@ int clustrixdb_discover_table(handlerton *hton, THD *thd, TABLE_SHARE *share)
...
@@ -1016,8 +1017,6 @@ int clustrixdb_discover_table(handlerton *hton, THD *thd, TABLE_SHARE *share)
return
error_code
;
return
error_code
;
}
}
#include "ha_clustrixdb_pushdown.cc"
static
int
clustrixdb_init
(
void
*
p
)
static
int
clustrixdb_init
(
void
*
p
)
{
{
clustrixdb_hton
=
(
handlerton
*
)
p
;
clustrixdb_hton
=
(
handlerton
*
)
p
;
...
...
storage/clustrixdb/ha_clustrixdb.h
View file @
ea5b6a6c
...
@@ -32,7 +32,6 @@ class ha_clustrixdb : public handler
...
@@ -32,7 +32,6 @@ class ha_clustrixdb : public handler
ulonglong
clustrix_table_oid
;
ulonglong
clustrix_table_oid
;
rpl_group_info
*
rgi
;
rpl_group_info
*
rgi
;
Relay_log_info
*
rli
;
Relay_log_info
*
rli
;
RPL_TABLE_LIST
*
rpl_table_list
;
Field
*
auto_inc_field
;
Field
*
auto_inc_field
;
ulonglong
auto_inc_value
;
ulonglong
auto_inc_value
;
...
@@ -108,4 +107,6 @@ class ha_clustrixdb : public handler
...
@@ -108,4 +107,6 @@ class ha_clustrixdb : public handler
size_t
*
packed_key_len
);
size_t
*
packed_key_len
);
};
};
bool
select_handler_setting
(
THD
*
thd
);
bool
derived_handler_setting
(
THD
*
thd
);
#endif // _ha_clustrixdb_h
#endif // _ha_clustrixdb_h
storage/clustrixdb/ha_clustrixdb_pushdown.cc
View file @
ea5b6a6c
...
@@ -2,8 +2,11 @@
...
@@ -2,8 +2,11 @@
Copyright (c) 2019, MariaDB Corporation.
Copyright (c) 2019, MariaDB Corporation.
*****************************************************************************/
*****************************************************************************/
#include "ha_clustrixdb.h"
#include "ha_clustrixdb_pushdown.h"
#include "ha_clustrixdb_pushdown.h"
extern
handlerton
*
clustrixdb_hton
;
/*@brief Fills up array data types, metadata and nullability*/
/*@brief Fills up array data types, metadata and nullability*/
/************************************************************
/************************************************************
* DESCRIPTION:
* DESCRIPTION:
...
@@ -85,7 +88,7 @@ int get_field_types(THD *thd, SELECT_LEX *sl, uchar *fieldtype,
...
@@ -85,7 +88,7 @@ int get_field_types(THD *thd, SELECT_LEX *sl, uchar *fieldtype,
* select_handler if possible
* select_handler if possible
* NULL otherwise
* NULL otherwise
************************************************************/
************************************************************/
s
tatic
s
elect_handler
*
select_handler
*
create_clustrixdb_select_handler
(
THD
*
thd
,
SELECT_LEX
*
select_lex
)
create_clustrixdb_select_handler
(
THD
*
thd
,
SELECT_LEX
*
select_lex
)
{
{
ha_clustrixdb_select_handler
*
sh
=
NULL
;
ha_clustrixdb_select_handler
*
sh
=
NULL
;
...
@@ -266,7 +269,7 @@ int ha_clustrixdb_select_handler::end_scan()
...
@@ -266,7 +269,7 @@ int ha_clustrixdb_select_handler::end_scan()
* derived_handler if possible
* derived_handler if possible
* NULL otherwise
* NULL otherwise
************************************************************/
************************************************************/
static
derived_handler
*
derived_handler
*
create_clustrixdb_derived_handler
(
THD
*
thd
,
TABLE_LIST
*
derived
)
create_clustrixdb_derived_handler
(
THD
*
thd
,
TABLE_LIST
*
derived
)
{
{
ha_clustrixdb_derived_handler
*
dh
=
NULL
;
ha_clustrixdb_derived_handler
*
dh
=
NULL
;
...
...
storage/clustrixdb/ha_clustrixdb_pushdown.h
View file @
ea5b6a6c
...
@@ -29,7 +29,6 @@ class ha_clustrixdb_base_handler
...
@@ -29,7 +29,6 @@ class ha_clustrixdb_base_handler
// Structures to unpack RBR rows from CLX BE
// Structures to unpack RBR rows from CLX BE
rpl_group_info
*
rgi
;
rpl_group_info
*
rgi
;
Relay_log_info
*
rli
;
Relay_log_info
*
rli
;
RPL_TABLE_LIST
*
rpl_table_list
;
// CLX BE scan operation reference
// CLX BE scan operation reference
ulonglong
scan_refid
;
ulonglong
scan_refid
;
// To unpack rows from CLX BE
// To unpack rows from CLX BE
...
@@ -84,5 +83,9 @@ class ha_clustrixdb_derived_handler:
...
@@ -84,5 +83,9 @@ class ha_clustrixdb_derived_handler:
};
};
select_handler
*
create_clustrixdb_select_handler
(
THD
*
thd
,
SELECT_LEX
*
select_lex
);
derived_handler
*
create_clustrixdb_derived_handler
(
THD
*
thd
,
TABLE_LIST
*
derived
);
#endif
#endif
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