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
6b61f1bb
Commit
6b61f1bb
authored
Sep 10, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
MDEV-17161 TRUNCATE TABLE fails after upgrade from 10.1
parents
b02c722e
fc34e4c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+3
-5
storage/innobase/handler/ha_innodb.h
storage/innobase/handler/ha_innodb.h
+1
-1
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
6b61f1bb
...
@@ -12220,9 +12220,7 @@ create_table_info_t::gcols_in_fulltext_or_spatial()
...
@@ -12220,9 +12220,7 @@ create_table_info_t::gcols_in_fulltext_or_spatial()
/** Prepare to create a new table to an InnoDB database.
/** Prepare to create a new table to an InnoDB database.
@param[in] name Table name
@param[in] name Table name
@return error number */
@return error number */
int
int
create_table_info_t
::
prepare_create_table
(
const
char
*
name
,
bool
strict
)
create_table_info_t
::
prepare_create_table
(
const
char
*
name
)
{
{
DBUG_ENTER
(
"prepare_create_table"
);
DBUG_ENTER
(
"prepare_create_table"
);
...
@@ -12245,7 +12243,7 @@ create_table_info_t::prepare_create_table(
...
@@ -12245,7 +12243,7 @@ create_table_info_t::prepare_create_table(
because InnoDB might actually support the option, but not under
because InnoDB might actually support the option, but not under
the current conditions. The messages revealing the specific
the current conditions. The messages revealing the specific
problems are reported inside this function. */
problems are reported inside this function. */
if
(
create_options_are_invalid
())
{
if
(
strict
&&
create_options_are_invalid
())
{
DBUG_RETURN
(
HA_WRONG_CREATE_OPTION
);
DBUG_RETURN
(
HA_WRONG_CREATE_OPTION
);
}
}
...
@@ -12572,7 +12570,7 @@ ha_innobase::create(
...
@@ -12572,7 +12570,7 @@ ha_innobase::create(
file_per_table
,
trx
);
file_per_table
,
trx
);
if
((
error
=
info
.
initialize
())
if
((
error
=
info
.
initialize
())
||
(
error
=
info
.
prepare_create_table
(
name
)))
{
||
(
error
=
info
.
prepare_create_table
(
name
,
!
trx
)))
{
if
(
trx
)
{
if
(
trx
)
{
trx_rollback_for_mysql
(
trx
);
trx_rollback_for_mysql
(
trx
);
row_mysql_unlock_data_dictionary
(
trx
);
row_mysql_unlock_data_dictionary
(
trx
);
...
...
storage/innobase/handler/ha_innodb.h
View file @
6b61f1bb
...
@@ -706,7 +706,7 @@ class create_table_info_t
...
@@ -706,7 +706,7 @@ class create_table_info_t
bool
create_option_tablespace_is_valid
();
bool
create_option_tablespace_is_valid
();
/** Prepare to create a table. */
/** Prepare to create a table. */
int
prepare_create_table
(
const
char
*
nam
e
);
int
prepare_create_table
(
const
char
*
name
,
bool
strict
=
tru
e
);
void
allocate_trx
();
void
allocate_trx
();
...
...
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