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
48b7245b
Commit
48b7245b
authored
Apr 27, 2017
by
sjaakola
Committed by
Jan Lindström
Jul 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MW-369 - merged fix for FK issue from 5.6-v25 branch
Signed-off-by:
Jan Lindström
<
jan.lindstrom@mariadb.com
>
parent
a4bc8db2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
storage/innobase/row/row0ins.c
storage/innobase/row/row0ins.c
+13
-8
No files found.
storage/innobase/row/row0ins.c
View file @
48b7245b
...
...
@@ -1082,11 +1082,12 @@ row_ins_foreign_check_on_constraint(
#ifdef WITH_WSREP
err
=
wsrep_append_foreign_key
(
thr_get_trx
(
thr
),
foreign
,
clust_rec
,
clust_index
,
FALSE
,
FALSE
);
thr_get_trx
(
thr
),
foreign
,
clust_rec
,
clust_index
,
FALSE
,
(
node
)
?
TRUE
:
FALSE
);
if
(
err
!=
DB_SUCCESS
)
{
fprintf
(
stderr
,
"WSREP: foreign key append failed: %lu
\n
"
,
err
);
...
...
@@ -1247,6 +1248,9 @@ row_ins_check_foreign_constraint(
ulint
*
offsets
=
offsets_
;
rec_offs_init
(
offsets_
);
#ifdef WITH_WSREP
upd_node
=
NULL
;
#endif
/* WITH_WSREP */
run_again:
#ifdef UNIV_SYNC_DEBUG
ut_ad
(
rw_lock_own
(
&
dict_operation_lock
,
RW_LOCK_SHARED
));
...
...
@@ -1429,9 +1433,10 @@ row_ins_check_foreign_constraint(
err
=
wsrep_append_foreign_key
(
thr_get_trx
(
thr
),
foreign
,
rec
,
check_index
,
check_ref
,
TRUE
);
rec
,
check_index
,
check_ref
,
(
upd_node
)
?
TRUE
:
FALSE
);
#endif
/* WITH_WSREP */
goto
end_scan
;
}
else
if
(
foreign
->
type
!=
0
)
{
...
...
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