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
84b3ec1f
Commit
84b3ec1f
authored
Jul 04, 2014
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge -r4105..4106 from codership/5.6
parent
006cb2a6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
44 deletions
+14
-44
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+6
-21
storage/innobase/rem/rem0rec.cc
storage/innobase/rem/rem0rec.cc
+1
-1
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+6
-21
storage/xtradb/rem/rem0rec.cc
storage/xtradb/rem/rem0rec.cc
+1
-1
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
84b3ec1f
...
...
@@ -6261,7 +6261,6 @@ wsrep_store_key_val_for_row(
const
byte
*
data
;
ulint
key_len
;
ulint
true_len
;
ulint
sort_len
;
const
CHARSET_INFO
*
cs
;
int
error
=
0
;
...
...
@@ -6304,12 +6303,12 @@ wsrep_store_key_val_for_row(
}
memcpy
(
sorted
,
data
,
true_len
);
sort
_len
=
wsrep_innobase_mysql_sort
(
true
_len
=
wsrep_innobase_mysql_sort
(
mysql_type
,
cs
->
number
,
sorted
,
true_len
,
REC_VERSION_56_MAX_INDEX_COL_LEN
);
if
(
wsrep_protocol_version
>
1
)
{
memcpy
(
buff
,
sorted
,
sort
_len
);
memcpy
(
buff
,
sorted
,
true
_len
);
/* Note that we always reserve the maximum possible
length of the true VARCHAR in the key value, though
only len first bytes after the 2 length bytes contain
...
...
@@ -6330,7 +6329,6 @@ wsrep_store_key_val_for_row(
const
CHARSET_INFO
*
cs
;
ulint
key_len
;
ulint
true_len
;
ulint
sort_len
;
int
error
=
0
;
ulint
blob_len
;
const
byte
*
blob_data
;
...
...
@@ -6379,11 +6377,11 @@ wsrep_store_key_val_for_row(
}
memcpy
(
sorted
,
blob_data
,
true_len
);
sort
_len
=
wsrep_innobase_mysql_sort
(
true
_len
=
wsrep_innobase_mysql_sort
(
mysql_type
,
cs
->
number
,
sorted
,
true_len
,
REC_VERSION_56_MAX_INDEX_COL_LEN
);
memcpy
(
buff
,
sorted
,
sort
_len
);
memcpy
(
buff
,
sorted
,
true
_len
);
/* Note that we always reserve the maximum possible
length of the BLOB prefix in the key value. */
...
...
@@ -6400,7 +6398,6 @@ wsrep_store_key_val_for_row(
const
CHARSET_INFO
*
cs
=
NULL
;
ulint
true_len
;
ulint
sort_len
;
ulint
key_len
;
const
uchar
*
src_start
;
int
error
=
0
;
...
...
@@ -6445,28 +6442,16 @@ wsrep_store_key_val_for_row(
&
error
);
}
memcpy
(
sorted
,
src_start
,
true_len
);
sort
_len
=
wsrep_innobase_mysql_sort
(
true
_len
=
wsrep_innobase_mysql_sort
(
mysql_type
,
cs
->
number
,
sorted
,
true_len
,
REC_VERSION_56_MAX_INDEX_COL_LEN
);
memcpy
(
buff
,
sorted
,
sort
_len
);
memcpy
(
buff
,
sorted
,
true
_len
);
}
else
{
memcpy
(
buff
,
src_start
,
true_len
);
}
buff
+=
true_len
;
/* Pad the unused space with spaces. */
#ifdef REMOVED
if
(
true_len
<
key_len
)
{
ulint
pad_len
=
key_len
-
true_len
;
ut_a
(
!
(
pad_len
%
cs
->
mbminlen
));
cs
->
cset
->
fill
(
cs
,
buff
,
pad_len
,
0x20
/* space */
);
buff
+=
pad_len
;
}
#endif
/* REMOVED */
}
}
...
...
storage/innobase/rem/rem0rec.cc
View file @
84b3ec1f
...
...
@@ -2058,7 +2058,7 @@ wsrep_rec_get_foreign_key(
case
DATA_MYSQL
:
/* Copy the actual data */
ut_memcpy
(
buf
,
data
,
len
);
*
buf_
len
=
wsrep_innobase_mysql_sort
(
len
=
wsrep_innobase_mysql_sort
(
(
int
)
(
col_f
->
prtype
&
DATA_MYSQL_TYPE_MASK
),
(
uint
)
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
84b3ec1f
...
...
@@ -6708,7 +6708,6 @@ wsrep_store_key_val_for_row(
const
byte
*
data
;
ulint
key_len
;
ulint
true_len
;
ulint
sort_len
;
const
CHARSET_INFO
*
cs
;
int
error
=
0
;
...
...
@@ -6751,12 +6750,12 @@ wsrep_store_key_val_for_row(
}
memcpy
(
sorted
,
data
,
true_len
);
sort
_len
=
wsrep_innobase_mysql_sort
(
true
_len
=
wsrep_innobase_mysql_sort
(
mysql_type
,
cs
->
number
,
sorted
,
true_len
,
REC_VERSION_56_MAX_INDEX_COL_LEN
);
if
(
wsrep_protocol_version
>
1
)
{
memcpy
(
buff
,
sorted
,
sort
_len
);
memcpy
(
buff
,
sorted
,
true
_len
);
/* Note that we always reserve the maximum possible
length of the true VARCHAR in the key value, though
only len first bytes after the 2 length bytes contain
...
...
@@ -6777,7 +6776,6 @@ wsrep_store_key_val_for_row(
const
CHARSET_INFO
*
cs
;
ulint
key_len
;
ulint
true_len
;
ulint
sort_len
;
int
error
=
0
;
ulint
blob_len
;
const
byte
*
blob_data
;
...
...
@@ -6826,11 +6824,11 @@ wsrep_store_key_val_for_row(
}
memcpy
(
sorted
,
blob_data
,
true_len
);
sort
_len
=
wsrep_innobase_mysql_sort
(
true
_len
=
wsrep_innobase_mysql_sort
(
mysql_type
,
cs
->
number
,
sorted
,
true_len
,
REC_VERSION_56_MAX_INDEX_COL_LEN
);
memcpy
(
buff
,
sorted
,
sort
_len
);
memcpy
(
buff
,
sorted
,
true
_len
);
/* Note that we always reserve the maximum possible
length of the BLOB prefix in the key value. */
...
...
@@ -6847,7 +6845,6 @@ wsrep_store_key_val_for_row(
const
CHARSET_INFO
*
cs
=
NULL
;
ulint
true_len
;
ulint
sort_len
;
ulint
key_len
;
const
uchar
*
src_start
;
int
error
=
0
;
...
...
@@ -6892,28 +6889,16 @@ wsrep_store_key_val_for_row(
&
error
);
}
memcpy
(
sorted
,
src_start
,
true_len
);
sort
_len
=
wsrep_innobase_mysql_sort
(
true
_len
=
wsrep_innobase_mysql_sort
(
mysql_type
,
cs
->
number
,
sorted
,
true_len
,
REC_VERSION_56_MAX_INDEX_COL_LEN
);
memcpy
(
buff
,
sorted
,
sort
_len
);
memcpy
(
buff
,
sorted
,
true
_len
);
}
else
{
memcpy
(
buff
,
src_start
,
true_len
);
}
buff
+=
true_len
;
/* Pad the unused space with spaces. */
#ifdef REMOVED
if
(
true_len
<
key_len
)
{
ulint
pad_len
=
key_len
-
true_len
;
ut_a
(
!
(
pad_len
%
cs
->
mbminlen
));
cs
->
cset
->
fill
(
cs
,
buff
,
pad_len
,
0x20
/* space */
);
buff
+=
pad_len
;
}
#endif
/* REMOVED */
}
}
...
...
storage/xtradb/rem/rem0rec.cc
View file @
84b3ec1f
...
...
@@ -2016,7 +2016,7 @@ wsrep_rec_get_foreign_key(
case
DATA_MYSQL
:
/* Copy the actual data */
ut_memcpy
(
buf
,
data
,
len
);
*
buf_
len
=
wsrep_innobase_mysql_sort
(
len
=
wsrep_innobase_mysql_sort
(
(
int
)
(
col_f
->
prtype
&
DATA_MYSQL_TYPE_MASK
),
(
uint
)
...
...
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