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
23c5bd4c
Commit
23c5bd4c
authored
Dec 09, 2004
by
pekka@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb: sunfire100c: fix aligment when 32-bit pointers and 64-bit ha_rows
parent
c3db04f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ndb/src/ndbapi/DictCache.cpp
ndb/src/ndbapi/DictCache.cpp
+4
-2
ndb/src/ndbapi/DictCache.hpp
ndb/src/ndbapi/DictCache.hpp
+1
-1
No files found.
ndb/src/ndbapi/DictCache.cpp
View file @
23c5bd4c
...
...
@@ -24,10 +24,12 @@
Ndb_local_table_info
*
Ndb_local_table_info
::
create
(
NdbTableImpl
*
table_impl
,
Uint32
sz
)
{
void
*
data
=
malloc
(
sizeof
(
NdbTableImpl
)
+
sz
-
1
);
if
(
sz
%
8
!=
0
)
// round to Uint64
sz
+=
8
-
sz
%
8
;
void
*
data
=
malloc
(
sizeof
(
NdbTableImpl
)
+
sz
-
8
);
if
(
data
==
0
)
return
0
;
memset
(
data
,
0
,
sizeof
(
NdbTableImpl
)
+
sz
-
1
);
memset
(
data
,
0
,
sizeof
(
NdbTableImpl
)
+
sz
-
8
);
new
(
data
)
Ndb_local_table_info
(
table_impl
);
return
(
Ndb_local_table_info
*
)
data
;
}
...
...
ndb/src/ndbapi/DictCache.hpp
View file @
23c5bd4c
...
...
@@ -32,7 +32,7 @@ public:
static
Ndb_local_table_info
*
create
(
NdbTableImpl
*
table_impl
,
Uint32
sz
=
0
);
static
void
destroy
(
Ndb_local_table_info
*
);
NdbTableImpl
*
m_table_impl
;
char
m_local_data
[
1
];
Uint64
m_local_data
[
1
];
private:
Ndb_local_table_info
(
NdbTableImpl
*
table_impl
);
~
Ndb_local_table_info
();
...
...
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