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
da5e2a19
Commit
da5e2a19
authored
Apr 09, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#206 compile without partition storage engine
parent
38b95830
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
storage/tokudb/ha_tokudb.cc
storage/tokudb/ha_tokudb.cc
+12
-13
storage/tokudb/ha_tokudb_alter_56.cc
storage/tokudb/ha_tokudb_alter_56.cc
+8
-0
No files found.
storage/tokudb/ha_tokudb.cc
View file @
da5e2a19
...
...
@@ -1634,14 +1634,9 @@ int ha_tokudb::initialize_share(
goto
exit
;
}
#if TOKU_PARTITION_WRITE_FRM_DATA
// verify frm data for all tables
error
=
verify_frm_data
(
table
->
s
->
path
.
str
,
txn
);
if
(
error
)
goto
exit
;
#else
#if WITH_PARTITION_STORAGE_ENGINE
// verify frm data for non-partitioned tables
if
(
table
->
part_info
==
NULL
)
{
if
(
TOKU_PARTITION_WRITE_FRM_DATA
||
table
->
part_info
==
NULL
)
{
error
=
verify_frm_data
(
table
->
s
->
path
.
str
,
txn
);
if
(
error
)
goto
exit
;
...
...
@@ -1651,6 +1646,10 @@ int ha_tokudb::initialize_share(
if
(
error
)
goto
exit
;
}
#else
error
=
verify_frm_data
(
table
->
s
->
path
.
str
,
txn
);
if
(
error
)
goto
exit
;
#endif
error
=
initialize_key_and_col_info
(
...
...
@@ -6891,16 +6890,16 @@ int ha_tokudb::create(const char *name, TABLE * form, HA_CREATE_INFO * create_in
error
=
write_auto_inc_create
(
status_block
,
create_info
->
auto_increment_value
,
txn
);
if
(
error
)
{
goto
cleanup
;
}
#if TOKU_PARTITION_WRITE_FRM_DATA
error
=
write_frm_data
(
status_block
,
txn
,
form
->
s
->
path
.
str
);
if
(
error
)
{
goto
cleanup
;
}
#else
// only for tables that are not partitioned
if
(
form
->
part_info
==
NULL
)
{
#if WITH_PARTITION_STORAGE_ENGINE
if
(
TOKU_PARTITION_WRITE_FRM_DATA
||
form
->
part_info
==
NULL
)
{
error
=
write_frm_data
(
status_block
,
txn
,
form
->
s
->
path
.
str
);
if
(
error
)
{
goto
cleanup
;
}
}
#else
error
=
write_frm_data
(
status_block
,
txn
,
form
->
s
->
path
.
str
);
if
(
error
)
{
goto
cleanup
;
}
#endif
error
=
allocate_key_and_col_info
(
form
->
s
,
&
kc_info
);
if
(
error
)
{
goto
cleanup
;
}
...
...
storage/tokudb/ha_tokudb_alter_56.cc
View file @
da5e2a19
...
...
@@ -520,7 +520,11 @@ bool ha_tokudb::inplace_alter_table(TABLE *altered_table, Alter_inplace_info *ha
#if (50600 <= MYSQL_VERSION_ID && MYSQL_VERSION_ID <= 50699) || \
(50700 <= MYSQL_VERSION_ID && MYSQL_VERSION_ID <= 50799)
#if WITH_PARTITION_STORAGE_ENGINE
if
(
error
==
0
&&
(
TOKU_PARTITION_WRITE_FRM_DATA
||
altered_table
->
part_info
==
NULL
))
{
#else
if
(
error
==
0
)
{
#endif
error
=
write_frm_data
(
share
->
status_block
,
ctx
->
alter_txn
,
altered_table
->
s
->
path
.
str
);
}
#endif
...
...
@@ -731,7 +735,11 @@ bool ha_tokudb::commit_inplace_alter_table(TABLE *altered_table, Alter_inplace_i
#endif
#if (50500 <= MYSQL_VERSION_ID && MYSQL_VERSION_ID <= 50599) || \
(100000 <= MYSQL_VERSION_ID && MYSQL_VERSION_ID <= 100099)
#if WITH_PARTITION_STORAGE_ENGINE
if
(
TOKU_PARTITION_WRITE_FRM_DATA
||
altered_table
->
part_info
==
NULL
)
{
#else
if
(
true
)
{
#endif
int
error
=
write_frm_data
(
share
->
status_block
,
ctx
->
alter_txn
,
altered_table
->
s
->
path
.
str
);
if
(
error
)
{
commit
=
false
;
...
...
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