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
b47a2182
Commit
b47a2182
authored
Oct 10, 2018
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MariaDB adjustments.
parent
508e715c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
8 deletions
+22
-8
storage/innobase/row/row0ins.c
storage/innobase/row/row0ins.c
+3
-1
storage/xtradb/row/row0ins.c
storage/xtradb/row/row0ins.c
+19
-7
No files found.
storage/innobase/row/row0ins.c
View file @
b47a2182
...
...
@@ -1093,7 +1093,8 @@ row_ins_foreign_check_on_constraint(
foreign
,
clust_rec
,
clust_index
,
FALSE
,
WSREP_KEY_EXCLUSIVE
);
FALSE
,
WSREP_KEY_EXCLUSIVE
);
if
(
err
!=
DB_SUCCESS
)
{
fprintf
(
stderr
,
"WSREP: foreign key append failed: %lu
\n
"
,
err
);
...
...
@@ -1451,6 +1452,7 @@ row_ins_check_foreign_constraint(
break
;
}
}
err
=
wsrep_append_foreign_key
(
thr_get_trx
(
thr
),
foreign
,
...
...
storage/xtradb/row/row0ins.c
View file @
b47a2182
...
...
@@ -1095,9 +1095,7 @@ row_ins_foreign_check_on_constraint(
clust_rec
,
clust_index
,
FALSE
,
node
!=
NULL
?
WSREP_KEY_SHARED
:
WSREP_KEY_EXCLUSIVE
);
WSREP_KEY_EXCLUSIVE
);
if
(
err
!=
DB_SUCCESS
)
{
fprintf
(
stderr
,
"WSREP: foreign key append failed: %lu
\n
"
,
err
);
...
...
@@ -1444,17 +1442,31 @@ row_ins_check_foreign_constraint(
}
if
(
check_ref
)
{
#ifdef WITH_WSREP
enum
wsrep_key_type
key_type
=
WSREP_KEY_EXCLUSIVE
;
#endif
/* WITH_WSREP */
err
=
DB_SUCCESS
;
#ifdef WITH_WSREP
err
=
wsrep_append_foreign_key
(
if
(
upd_node
!=
NULL
)
{
key_type
=
WSREP_KEY_SHARED
;
}
else
{
switch
(
wsrep_certification_rules
)
{
case
WSREP_CERTIFICATION_RULES_STRICT
:
key_type
=
WSREP_KEY_EXCLUSIVE
;
break
;
case
WSREP_CERTIFICATION_RULES_OPTIMIZED
:
key_type
=
WSREP_KEY_SEMI
;
break
;
}
}
err
=
wsrep_append_foreign_key
(
thr_get_trx
(
thr
),
foreign
,
rec
,
check_index
,
check_ref
,
upd_node
!=
NULL
?
WSREP_KEY_SHARED
:
WSREP_KEY_EXCLUSIVE
);
key_type
);
#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