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
f0629146
Commit
f0629146
authored
Sep 23, 2013
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#92 remove memcpy_fixed (no longer necessary)
parent
5cf85b79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
+5
-13
storage/tokudb/ha_tokudb.cc
storage/tokudb/ha_tokudb.cc
+5
-5
storage/tokudb/ha_tokudb.h
storage/tokudb/ha_tokudb.h
+0
-8
No files found.
storage/tokudb/ha_tokudb.cc
View file @
f0629146
...
...
@@ -982,7 +982,7 @@ static uchar* pack_toku_field_blob(
}
if
(
length
>
0
)
{
memcpy
_fixed
((
uchar
*
)(
&
data_ptr
),
from_mysql
+
len_bytes
,
sizeof
(
uchar
*
));
memcpy
((
uchar
*
)(
&
data_ptr
),
from_mysql
+
len_bytes
,
sizeof
(
uchar
*
));
memcpy
(
to_tokudb
+
len_bytes
,
data_ptr
,
length
);
}
return
(
to_tokudb
+
len_bytes
+
length
);
...
...
@@ -2824,7 +2824,7 @@ DBT* ha_tokudb::create_dbt_key_from_key(
if
(
!
dont_pack_pk
)
{
tmp_buff
=
buff
+
size
;
if
(
hidden_primary_key
)
{
memcpy
_fixed
(
tmp_buff
,
current_ident
,
TOKUDB_HIDDEN_PRIMARY_KEY_LENGTH
);
memcpy
(
tmp_buff
,
current_ident
,
TOKUDB_HIDDEN_PRIMARY_KEY_LENGTH
);
size
+=
TOKUDB_HIDDEN_PRIMARY_KEY_LENGTH
;
}
else
{
...
...
@@ -4718,13 +4718,13 @@ void ha_tokudb::extract_hidden_primary_key(uint keynr, DBT const *found_key) {
//
if
(
hidden_primary_key
)
{
if
(
keynr
==
primary_key
)
{
memcpy
_fixed
(
current_ident
,
(
char
*
)
found_key
->
data
,
TOKUDB_HIDDEN_PRIMARY_KEY_LENGTH
);
memcpy
(
current_ident
,
(
char
*
)
found_key
->
data
,
TOKUDB_HIDDEN_PRIMARY_KEY_LENGTH
);
}
//
// if secondary key, hidden primary key is at end of found_key
//
else
{
memcpy
_fixed
(
memcpy
(
current_ident
,
(
char
*
)
found_key
->
data
+
found_key
->
size
-
TOKUDB_HIDDEN_PRIMARY_KEY_LENGTH
,
TOKUDB_HIDDEN_PRIMARY_KEY_LENGTH
...
...
@@ -5912,7 +5912,7 @@ void ha_tokudb::position(const uchar * record) {
DBT
key
;
if
(
hidden_primary_key
)
{
DBUG_ASSERT
(
ref_length
==
(
TOKUDB_HIDDEN_PRIMARY_KEY_LENGTH
+
sizeof
(
uint32_t
)));
memcpy
_fixed
(
ref
+
sizeof
(
uint32_t
),
current_ident
,
TOKUDB_HIDDEN_PRIMARY_KEY_LENGTH
);
memcpy
(
ref
+
sizeof
(
uint32_t
),
current_ident
,
TOKUDB_HIDDEN_PRIMARY_KEY_LENGTH
);
*
(
uint32_t
*
)
ref
=
TOKUDB_HIDDEN_PRIMARY_KEY_LENGTH
;
}
else
{
...
...
storage/tokudb/ha_tokudb.h
View file @
f0629146
...
...
@@ -787,13 +787,5 @@ class ha_tokudb : public handler {
#endif
};
#if MYSQL_VERSION_ID >= 50506
static
inline
void
*
memcpy_fixed
(
void
*
a
,
const
void
*
b
,
size_t
n
)
{
return
memcpy
(
a
,
b
,
n
);
}
#endif
#endif
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