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
a9988038
Commit
a9988038
authored
May 24, 2013
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile on mysql 5.6
parent
0a51494a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
storage/tokudb/tokudb_card.h
storage/tokudb/tokudb_card.h
+5
-4
No files found.
storage/tokudb/tokudb_card.h
View file @
a9988038
...
@@ -92,17 +92,18 @@ namespace tokudb {
...
@@ -92,17 +92,18 @@ namespace tokudb {
uint
orig_key_parts
=
0
;
uint
orig_key_parts
=
0
;
for
(
uint
i
=
0
;
i
<
table_share
->
keys
;
i
++
)
{
for
(
uint
i
=
0
;
i
<
table_share
->
keys
;
i
++
)
{
orig_key_offset
[
i
]
=
orig_key_parts
;
orig_key_offset
[
i
]
=
orig_key_parts
;
orig_key_parts
+=
table_share
->
key_info
[
i
].
key_parts
;
orig_key_parts
+=
get_key_parts
(
&
table_share
->
key_info
[
i
])
;
}
}
// if orig card data exists, then use it to compute new card data
// if orig card data exists, then use it to compute new card data
if
(
error
==
0
)
{
if
(
error
==
0
)
{
uint
key_parts
=
0
;
uint
next_
key_parts
=
0
;
for
(
uint
i
=
0
;
error
==
0
&&
i
<
altered_table_share
->
keys
;
i
++
)
{
for
(
uint
i
=
0
;
error
==
0
&&
i
<
altered_table_share
->
keys
;
i
++
)
{
uint
ith_key_parts
=
get_key_parts
(
&
altered_table_share
->
key_info
[
i
]);
uint
orig_key_index
;
uint
orig_key_index
;
if
(
find_index_of_key
(
altered_table_share
->
key_info
[
i
].
name
,
table_share
,
&
orig_key_index
))
{
if
(
find_index_of_key
(
altered_table_share
->
key_info
[
i
].
name
,
table_share
,
&
orig_key_index
))
{
memcpy
(
&
altered_rec_per_key
[
key_parts
],
&
rec_per_key
[
orig_key_offset
[
orig_key_index
]],
altered_table_share
->
key_info
[
i
].
key_parts
);
memcpy
(
&
altered_rec_per_key
[
next_key_parts
],
&
rec_per_key
[
orig_key_offset
[
orig_key_index
]],
ith_
key_parts
);
}
}
key_parts
+=
altered_table_share
->
key_info
[
i
].
key_parts
;
next_key_parts
+=
ith_
key_parts
;
}
}
}
}
if
(
error
==
0
)
if
(
error
==
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