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
0a0eed80
Commit
0a0eed80
authored
Mar 07, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 5.5 into 10.0
parents
2d347132
8024f8c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
storage/innobase/row/row0mysql.cc
storage/innobase/row/row0mysql.cc
+6
-5
storage/xtradb/row/row0mysql.cc
storage/xtradb/row/row0mysql.cc
+6
-5
No files found.
storage/innobase/row/row0mysql.cc
View file @
0a0eed80
/*****************************************************************************
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, 201
8
, MariaDB Corporation.
Copyright (c) 2017, 201
9
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -615,8 +615,7 @@ row_mysql_handle_errors(
switch
(
err
)
{
case
DB_LOCK_WAIT_TIMEOUT
:
if
(
row_rollback_on_timeout
)
{
trx_rollback_to_savepoint
(
trx
,
NULL
);
break
;
goto
rollback
;
}
/* fall through */
case
DB_DUPLICATE_KEY
:
...
...
@@ -633,6 +632,7 @@ row_mysql_handle_errors(
case
DB_FTS_INVALID_DOCID
:
case
DB_INTERRUPTED
:
case
DB_DICT_CHANGED
:
rollback_to_savept:
if
(
savept
)
{
/* Roll back the latest, possibly incomplete insertion
or update */
...
...
@@ -656,6 +656,7 @@ row_mysql_handle_errors(
case
DB_DEADLOCK
:
case
DB_LOCK_TABLE_FULL
:
rollback:
/* Roll back the whole transaction; this resolution was added
to version 3.23.43 */
...
...
@@ -686,14 +687,14 @@ row_mysql_handle_errors(
"InnoDB: you dump the tables, look at
\n
"
"InnoDB: "
REFMAN
"forcing-innodb-recovery.html"
" for help.
\n
"
,
stderr
);
break
;
goto
rollback_to_savept
;
case
DB_FOREIGN_EXCEED_MAX_CASCADE
:
fprintf
(
stderr
,
"InnoDB: Cannot delete/update rows with"
" cascading foreign key constraints that exceed max"
" depth of %lu
\n
"
"Please drop excessive foreign constraints"
" and try again
\n
"
,
(
ulong
)
DICT_FK_MAX_RECURSIVE_LOAD
);
break
;
goto
rollback_to_savept
;
default:
fprintf
(
stderr
,
"InnoDB: unknown error code %lu
\n
"
,
(
ulong
)
err
);
...
...
storage/xtradb/row/row0mysql.cc
View file @
0a0eed80
/*****************************************************************************
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, 201
8
, MariaDB Corporation.
Copyright (c) 2017, 201
9
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -613,8 +613,7 @@ row_mysql_handle_errors(
switch
(
err
)
{
case
DB_LOCK_WAIT_TIMEOUT
:
if
(
row_rollback_on_timeout
)
{
trx_rollback_to_savepoint
(
trx
,
NULL
);
break
;
goto
rollback
;
}
/* fall through */
case
DB_DUPLICATE_KEY
:
...
...
@@ -631,6 +630,7 @@ row_mysql_handle_errors(
case
DB_FTS_INVALID_DOCID
:
case
DB_INTERRUPTED
:
case
DB_DICT_CHANGED
:
rollback_to_savept:
if
(
savept
)
{
/* Roll back the latest, possibly incomplete insertion
or update */
...
...
@@ -654,6 +654,7 @@ row_mysql_handle_errors(
case
DB_DEADLOCK
:
case
DB_LOCK_TABLE_FULL
:
rollback:
/* Roll back the whole transaction; this resolution was added
to version 3.23.43 */
...
...
@@ -684,14 +685,14 @@ row_mysql_handle_errors(
"InnoDB: you dump the tables, look at
\n
"
"InnoDB: "
REFMAN
"forcing-innodb-recovery.html"
" for help.
\n
"
,
stderr
);
break
;
goto
rollback_to_savept
;
case
DB_FOREIGN_EXCEED_MAX_CASCADE
:
fprintf
(
stderr
,
"InnoDB: Cannot delete/update rows with"
" cascading foreign key constraints that exceed max"
" depth of %lu
\n
"
"Please drop excessive foreign constraints"
" and try again
\n
"
,
(
ulong
)
DICT_FK_MAX_RECURSIVE_LOAD
);
break
;
goto
rollback_to_savept
;
default:
fprintf
(
stderr
,
"InnoDB: unknown error code %lu
\n
"
,
(
ulong
)
err
);
...
...
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