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
e9edf3cf
Commit
e9edf3cf
authored
Sep 08, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#ndb_blob on 1 node
Make sure to flush buffer when sending long sig so that order is maintained
parent
e8566a20
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
ndb/src/kernel/blocks/dbtup/DbtupBuffer.cpp
ndb/src/kernel/blocks/dbtup/DbtupBuffer.cpp
+15
-0
No files found.
ndb/src/kernel/blocks/dbtup/DbtupBuffer.cpp
View file @
e9edf3cf
...
...
@@ -141,6 +141,8 @@ void Dbtup::sendReadAttrinfo(Signal* signal,
const
Uint32
type
=
getNodeInfo
(
nodeId
).
m_type
;
bool
is_api
=
(
type
>=
NodeInfo
::
API
&&
type
<=
NodeInfo
::
REP
);
bool
old_dest
=
(
getNodeInfo
(
nodeId
).
m_version
<
MAKE_VERSION
(
3
,
5
,
0
));
Uint32
TpacketTA
=
hostBuffer
[
nodeId
].
noOfPacketsTA
;
Uint32
TpacketLen
=
hostBuffer
[
nodeId
].
packetLenTA
;
if
(
ERROR_INSERTED
(
4006
)
&&
(
nodeId
!=
getOwnNodeId
())){
// Use error insert to turn routing on
...
...
@@ -169,6 +171,19 @@ void Dbtup::sendReadAttrinfo(Signal* signal,
*/
if
(
ToutBufIndex
>=
22
&&
is_api
&&
!
old_dest
)
{
ljam
();
/**
* Flush buffer so that order is maintained
*/
if
(
TpacketTA
!=
0
)
{
ljam
();
BlockReference
TBref
=
numberToRef
(
API_PACKED
,
nodeId
);
MEMCOPY_NO_WORDS
(
&
signal
->
theData
[
0
],
&
hostBuffer
[
nodeId
].
packetBufferTA
[
0
],
TpacketLen
);
sendSignal
(
TBref
,
GSN_TRANSID_AI
,
signal
,
TpacketLen
,
JBB
);
hostBuffer
[
nodeId
].
noOfPacketsTA
=
0
;
hostBuffer
[
nodeId
].
packetLenTA
=
0
;
}
//if
LinearSectionPtr
ptr
[
3
];
ptr
[
0
].
p
=
&
signal
->
theData
[
25
];
ptr
[
0
].
sz
=
ToutBufIndex
;
...
...
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