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
67b044cc
Commit
67b044cc
authored
Jan 19, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - make sure scan recevier pointers are aligned
parent
51a443a1
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 @
67b044cc
...
...
@@ -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