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
dc1e0e38
Commit
dc1e0e38
authored
Jan 17, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
parents
febe8dd7
be3de64d
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 @
dc1e0e38
...
...
@@ -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