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
f128a98b
Commit
f128a98b
authored
Sep 08, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore transid when flushing
parent
d69d7937
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
ndb/src/kernel/blocks/dbtup/DbtupBuffer.cpp
ndb/src/kernel/blocks/dbtup/DbtupBuffer.cpp
+10
-7
No files found.
ndb/src/kernel/blocks/dbtup/DbtupBuffer.cpp
View file @
f128a98b
...
...
@@ -134,6 +134,10 @@ void Dbtup::sendReadAttrinfo(Signal* signal,
const
Operationrec
*
const
regOperPtr
)
{
const
BlockReference
recBlockref
=
regOperPtr
->
recBlockref
;
const
Uint32
sig0
=
regOperPtr
->
tcOperationPtr
;
const
Uint32
sig1
=
regOperPtr
->
transid1
;
const
Uint32
sig2
=
regOperPtr
->
transid2
;
const
Uint32
block
=
refToBlock
(
recBlockref
);
const
Uint32
nodeId
=
refToNode
(
recBlockref
);
...
...
@@ -141,8 +145,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
;
const
Uint32
TpacketTA
=
hostBuffer
[
nodeId
].
noOfPacketsTA
;
const
Uint32
TpacketLen
=
hostBuffer
[
nodeId
].
packetLenTA
;
if
(
ERROR_INSERTED
(
4006
)
&&
(
nodeId
!=
getOwnNodeId
())){
// Use error insert to turn routing on
...
...
@@ -150,15 +154,11 @@ void Dbtup::sendReadAttrinfo(Signal* signal,
connectedToNode
=
false
;
}
Uint32
sig0
=
regOperPtr
->
tcOperationPtr
;
Uint32
sig1
=
regOperPtr
->
transid1
;
Uint32
sig2
=
regOperPtr
->
transid2
;
TransIdAI
*
transIdAI
=
(
TransIdAI
*
)
signal
->
getDataPtrSend
();
transIdAI
->
connectPtr
=
sig0
;
transIdAI
->
transId
[
0
]
=
sig1
;
transIdAI
->
transId
[
1
]
=
sig2
;
if
(
connectedToNode
){
/**
* Own node -> execute direct
...
...
@@ -183,6 +183,9 @@ void Dbtup::sendReadAttrinfo(Signal* signal,
sendSignal
(
TBref
,
GSN_TRANSID_AI
,
signal
,
TpacketLen
,
JBB
);
hostBuffer
[
nodeId
].
noOfPacketsTA
=
0
;
hostBuffer
[
nodeId
].
packetLenTA
=
0
;
transIdAI
->
connectPtr
=
sig0
;
transIdAI
->
transId
[
0
]
=
sig1
;
transIdAI
->
transId
[
1
]
=
sig2
;
}
//if
LinearSectionPtr
ptr
[
3
];
ptr
[
0
].
p
=
&
signal
->
theData
[
25
];
...
...
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