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
6051842c
Commit
6051842c
authored
Feb 01, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor clean-up
parent
a3a4ea93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
storage/innobase/row/row0ins.cc
storage/innobase/row/row0ins.cc
+4
-7
storage/xtradb/row/row0ins.cc
storage/xtradb/row/row0ins.cc
+3
-6
No files found.
storage/innobase/row/row0ins.cc
View file @
6051842c
/*****************************************************************************
Copyright (c) 1996, 2016, 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
...
...
@@ -1643,16 +1643,14 @@ 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
enum
wsrep_key_type
key_type
;
if
(
upd_node
!=
NULL
)
{
key_type
=
WSREP_KEY_SHARED
;
}
else
{
switch
(
wsrep_certification_rules
)
{
default:
case
WSREP_CERTIFICATION_RULES_STRICT
:
key_type
=
WSREP_KEY_EXCLUSIVE
;
break
;
...
...
@@ -1669,8 +1667,7 @@ row_ins_check_foreign_constraint(
check_index
,
check_ref
,
key_type
);
#endif
/* WITH_WSREP */
#endif
/* WITH_WSREP */
goto
end_scan
;
}
else
if
(
foreign
->
type
!=
0
)
{
/* There is an ON UPDATE or ON DELETE
...
...
storage/xtradb/row/row0ins.cc
View file @
6051842c
...
...
@@ -1655,16 +1655,14 @@ 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
enum
wsrep_key_type
key_type
;
if
(
upd_node
!=
NULL
)
{
key_type
=
WSREP_KEY_SHARED
;
}
else
{
switch
(
wsrep_certification_rules
)
{
default:
case
WSREP_CERTIFICATION_RULES_STRICT
:
key_type
=
WSREP_KEY_EXCLUSIVE
;
break
;
...
...
@@ -1681,8 +1679,7 @@ row_ins_check_foreign_constraint(
check_index
,
check_ref
,
key_type
);
#endif
/* WITH_WSREP */
#endif
/* WITH_WSREP */
goto
end_scan
;
}
else
if
(
foreign
->
type
!=
0
)
{
/* There is an ON UPDATE or ON DELETE
...
...
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