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
7dcd9654
Commit
7dcd9654
authored
Oct 25, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DB-747 merge mariadb 10 frm hack and dont compile row format compression code
parent
9a88c105
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
storage/tokudb/ha_tokudb.cc
storage/tokudb/ha_tokudb.cc
+12
-2
storage/tokudb/ha_tokudb.h
storage/tokudb/ha_tokudb.h
+2
-2
No files found.
storage/tokudb/ha_tokudb.cc
View file @
7dcd9654
...
...
@@ -6368,10 +6368,12 @@ static toku_compression_method get_compression_method(DB *file) {
return
method
;
}
#if TOKU_INCLUDE_ROW_TYPE_COMPRESSION
enum
row_type
ha_tokudb
::
get_row_type
(
void
)
const
{
toku_compression_method
compression_method
=
get_compression_method
(
share
->
file
);
return
toku_compression_method_to_row_type
(
compression_method
);
}
#endif
static
int
create_sub_table
(
const
char
*
table_name
,
...
...
@@ -6447,16 +6449,16 @@ void ha_tokudb::update_create_info(HA_CREATE_INFO* create_info) {
create_info
->
auto_increment_value
=
stats
.
auto_increment_value
;
}
}
#if TOKU_INCLUDE_ROW_TYPE_COMPRESSION
if
(
!
(
create_info
->
used_fields
&
HA_CREATE_USED_ROW_FORMAT
))
{
// show create table asks us to update this create_info, this makes it
// so we'll always show what compression type we're using
create_info
->
row_type
=
get_row_type
();
#if TOKU_INCLUDE_ROW_TYPE_COMPRESSION
if
(
create_info
->
row_type
==
ROW_TYPE_TOKU_ZLIB
&&
THDVAR
(
ha_thd
(),
hide_default_row_format
)
!=
0
)
{
create_info
->
row_type
=
ROW_TYPE_DEFAULT
;
}
#endif
}
#endif
}
//
...
...
@@ -6781,6 +6783,14 @@ int ha_tokudb::create(const char *name, TABLE * form, HA_CREATE_INFO * create_in
memset
(
&
kc_info
,
0
,
sizeof
(
kc_info
));
#if 100000 <= MYSQL_VERSION_ID && MYSQL_VERSION_ID <= 100999
// TokuDB does not support discover_table_names() and writes no files
// in the database directory, so automatic filename-based
// discover_table_names() doesn't work either. So, it must force .frm
// file to disk.
form
->
s
->
write_frm_image
();
#endif
#if TOKU_INCLUDE_OPTION_STRUCTS
const
srv_row_format_t
row_format
=
(
srv_row_format_t
)
form
->
s
->
option_struct
->
row_format
;
#else
...
...
storage/tokudb/ha_tokudb.h
View file @
7dcd9654
...
...
@@ -756,9 +756,9 @@ class ha_tokudb : public handler {
uchar
*
buf
,
DBT
*
key_to_compare
);
#if TOKU_INCLUDE_ROW_TYPE_COMPRESSION
enum
row_type
get_row_type
()
const
;
#endif
private:
int
read_full_row
(
uchar
*
buf
);
int
__close
();
...
...
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