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
50e04743
Commit
50e04743
authored
Jan 17, 2005
by
timour@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/timka/mysql/src/4.1-virgin
into mysql.com:/home/timka/mysql/src/4.1-bug-7331
parents
06fce173
9dbe52bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
ndb/tools/restore/Restore.hpp
ndb/tools/restore/Restore.hpp
+19
-14
No files found.
ndb/tools/restore/Restore.hpp
View file @
50e04743
...
...
@@ -187,28 +187,33 @@ public:
};
void
update_max_auto_val
(
const
char
*
data
,
int
size
)
{
Uint64
val
=
0
;
union
{
Uint8
u8
;
Uint16
u16
;
Uint32
u32
;
}
val
;
Uint64
v
;
switch
(
size
){
case
8
:
val
=
*
(
Uint8
*
)
data
;
break
;
case
16
:
val
=
*
(
Uint16
*
)
data
;
break
;
case
24
:
val
=
(
0xffffff
)
&*
(
Uint32
*
)
data
;
case
64
:
memcpy
(
&
v
,
data
,
8
);
break
;
case
32
:
val
=
*
(
Uint32
*
)
data
;
memcpy
(
&
val
.
u32
,
data
,
4
);
v
=
val
.
u32
;
break
;
case
64
:
val
=
*
(
Uint64
*
)
data
;
case
16
:
memcpy
(
&
val
.
u16
,
data
,
2
);
v
=
val
.
u16
;
break
;
case
8
:
memcpy
(
&
val
.
u8
,
data
,
1
);
v
=
val
.
u8
;
break
;
default:
return
;
};
if
(
v
al
>
m_max_auto_val
)
m_max_auto_val
=
v
al
;
if
(
v
>
m_max_auto_val
)
m_max_auto_val
=
v
;
};
/**
* Get attribute descriptor
...
...
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