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
4bd96dd1
Commit
4bd96dd1
authored
Jan 19, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - make sure scan recevier pointers are aligned
ndb/src/ndbapi/NdbScanOperation.cpp: align pointers
parent
7893b8df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ndb/src/ndbapi/NdbScanOperation.cpp
ndb/src/ndbapi/NdbScanOperation.cpp
+5
-5
No files found.
ndb/src/ndbapi/NdbScanOperation.cpp
View file @
4bd96dd1
...
...
@@ -241,17 +241,17 @@ NdbScanOperation::fix_receivers(Uint32 parallel){
if
(
parallel
>
m_allocated_receivers
){
const
Uint32
sz
=
parallel
*
(
4
*
sizeof
(
char
*
)
+
sizeof
(
Uint32
));
Uint
32
*
tmp
=
new
Uint32
[(
sz
+
3
)
/
4
];
Uint
64
*
tmp
=
new
Uint64
[(
sz
+
7
)
/
8
];
// Save old receivers
memcpy
(
tmp
+
parallel
,
m_receivers
,
m_allocated_receivers
*
sizeof
(
char
*
));
memcpy
(
tmp
,
m_receivers
,
m_allocated_receivers
*
sizeof
(
char
*
));
delete
[]
m_array
;
m_array
=
tmp
;
m_array
=
(
Uint32
*
)
tmp
;
m_prepared_receivers
=
tmp
;
m_receivers
=
(
NdbReceiver
**
)(
tmp
+
parallel
);
m_receivers
=
(
NdbReceiver
**
)
tmp
;
m_api_receivers
=
m_receivers
+
parallel
;
m_conf_receivers
=
m_api_receivers
+
parallel
;
m_sent_receivers
=
m_conf_receivers
+
parallel
;
m_prepared_receivers
=
(
Uint32
*
)(
m_sent_receivers
+
parallel
);
// Only get/init "new" receivers
NdbReceiver
*
tScanRec
;
...
...
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