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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2399f1ae
Commit
2399f1ae
authored
Nov 04, 2015
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for build failure.
parent
4d151129
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+1
-1
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+22
-1
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
2399f1ae
...
...
@@ -9852,7 +9852,7 @@ ha_innobase::wsrep_append_keys(
ibool
is_null
;
len
=
wsrep_store_key_val_for_row
(
thd
,
table
,
0
,
key
,
WSREP_MAX_SUPPORTED_KEY_LENGTH
,
thd
,
table
,
0
,
key
,
WSREP_MAX_SUPPORTED_KEY_LENGTH
,
record0
,
&
is_null
);
if
(
!
is_null
)
{
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
2399f1ae
...
...
@@ -10474,6 +10474,27 @@ wsrep_append_key(
extern
void
compute_md5_hash
(
char
*
digest
,
const
char
*
buf
,
int
len
);
#define MD5_HASH compute_md5_hash
static
bool
referenced_by_foreign_key2
(
dict_table_t
*
table
,
dict_index_t
*
index
)
{
ut_ad
(
table
!=
NULL
);
ut_ad
(
index
!=
NULL
);
const
dict_foreign_set
*
fks
=
&
table
->
referenced_set
;
for
(
dict_foreign_set
::
const_iterator
it
=
fks
->
begin
();
it
!=
fks
->
end
();
++
it
)
{
dict_foreign_t
*
foreign
=
*
it
;
if
(
foreign
->
referenced_index
!=
index
)
{
continue
;
}
ut_ad
(
table
==
foreign
->
referenced_table
);
return
true
;
}
return
false
;
}
int
ha_innobase
::
wsrep_append_keys
(
/*==================*/
...
...
@@ -10553,7 +10574,7 @@ ha_innobase::wsrep_append_keys(
/* !hasPK == table with no PK, must append all non-unique keys */
if
(
!
hasPK
||
key_info
->
flags
&
HA_NOSAME
||
((
tab
&&
dict_table_get_referenced_constraint
(
tab
,
idx
))
||
referenced_by_foreign_key2
(
tab
,
idx
))
||
(
!
tab
&&
referenced_by_foreign_key
())))
{
len
=
wsrep_store_key_val_for_row
(
...
...
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