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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d2986ecd
Commit
d2986ecd
authored
Dec 01, 2013
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17 support mariadb clustering option
parent
213e2192
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
storage/tokudb/ha_tokudb.h
storage/tokudb/ha_tokudb.h
+12
-0
storage/tokudb/hatoku_hton.cc
storage/tokudb/hatoku_hton.cc
+12
-0
No files found.
storage/tokudb/ha_tokudb.h
View file @
d2986ecd
...
...
@@ -784,9 +784,21 @@ private:
#endif
};
#if defined(MARIADB_BASE_VERSION)
struct
ha_index_option_struct
{
bool
clustering
;
};
static
inline
bool
key_is_clustering
(
const
KEY
*
key
)
{
return
(
key
->
flags
&
HA_CLUSTERING
)
||
(
key
->
option_struct
&&
key
->
option_struct
->
clustering
);
}
#else
static
inline
bool
key_is_clustering
(
const
KEY
*
key
)
{
return
key
->
flags
&
HA_CLUSTERING
;
}
#endif
#endif
storage/tokudb/hatoku_hton.cc
View file @
d2986ecd
...
...
@@ -126,6 +126,13 @@ typedef struct savepoint_info {
bool
in_sub_stmt
;
}
*
SP_INFO
,
SP_INFO_T
;
#if defined(MARIADB_BASE_VERSION)
ha_create_table_option
tokudb_index_options
[]
=
{
HA_IOPTION_BOOL
(
"clustering"
,
clustering
,
0
),
HA_IOPTION_END
};
#endif
static
uchar
*
tokudb_get_key
(
TOKUDB_SHARE
*
share
,
size_t
*
length
,
my_bool
not_used
__attribute__
((
unused
)))
{
*
length
=
share
->
table_name_length
;
return
(
uchar
*
)
share
->
table_name
;
...
...
@@ -363,6 +370,11 @@ static int tokudb_init_func(void *p) {
#if TOKU_INCLUDE_HANDLERTON_HANDLE_FATAL_SIGNAL
tokudb_hton
->
handle_fatal_signal
=
tokudb_handle_fatal_signal
;
#endif
#if defined(MARIADB_BASE_VERSION)
tokudb_hton
->
index_options
=
tokudb_index_options
;
#endif
if
(
!
tokudb_home
)
tokudb_home
=
mysql_real_data_home
;
DBUG_PRINT
(
"info"
,
(
"tokudb_home: %s"
,
tokudb_home
));
...
...
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