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
22626ad2
Commit
22626ad2
authored
Jun 02, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#20185
update test prg + fix typo
parent
97df411f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
+1
-1
storage/ndb/test/ndbapi/testNodeRestart.cpp
storage/ndb/test/ndbapi/testNodeRestart.cpp
+11
-2
No files found.
storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
View file @
22626ad2
...
...
@@ -7093,7 +7093,7 @@ Dbtc::nodeFailCheckTransactions(Signal* signal,
for
(
transPtr
.
i
=
transPtrI
;
transPtr
.
i
<
capiConnectFilesize
;
transPtr
.
i
++
)
{
ptrCheckGuard
(
transPtr
,
capiConnectFilesize
,
apiConnectRecord
);
Ui
i
nt32
state
=
transPtr
.
p
->
apiConnectstate
;
Uint32
state
=
transPtr
.
p
->
apiConnectstate
;
if
(
transPtr
.
p
->
m_transaction_nodes
.
get
(
failedNodeId
))
{
jam
();
...
...
storage/ndb/test/ndbapi/testNodeRestart.cpp
View file @
22626ad2
...
...
@@ -879,12 +879,15 @@ int runBug20185(NDBT_Context* ctx, NDBT_Step* step){
HugoOperations
hugoOps
(
*
ctx
->
getTab
());
Ndb
*
pNdb
=
GETNDB
(
step
);
const
int
masterNode
=
restarter
.
getMasterNodeId
();
int
dump
[]
=
{
7090
,
20
}
;
if
(
restarter
.
dumpStateAllNodes
(
dump
,
2
))
return
NDBT_FAILED
;
NdbSleep_MilliSleep
(
3000
);
retry:
if
(
hugoOps
.
startTransaction
(
pNdb
)
!=
0
)
return
NDBT_FAILED
;
...
...
@@ -894,8 +897,14 @@ int runBug20185(NDBT_Context* ctx, NDBT_Step* step){
if
(
hugoOps
.
execute_NoCommit
(
pNdb
)
!=
0
)
return
NDBT_FAILED
;
int
nodeId
;
const
int
node
=
hugoOps
.
getTransaction
()
->
getConnectedNodeId
();
if
(
node
!=
masterNode
)
{
hugoOps
.
closeTransaction
(
pNdb
);
goto
retry
;
}
int
nodeId
;
do
{
nodeId
=
restarter
.
getDbNodeId
(
rand
()
%
restarter
.
getNumDbNodes
());
}
while
(
nodeId
==
node
);
...
...
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