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
dacc257b
Commit
dacc257b
authored
Oct 13, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle temporary errors in clearTable
parent
74f17e4c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
ndb/test/src/UtilTransactions.cpp
ndb/test/src/UtilTransactions.cpp
+18
-1
No files found.
ndb/test/src/UtilTransactions.cpp
View file @
dacc257b
...
@@ -383,11 +383,20 @@ UtilTransactions::clearTable3(Ndb* pNdb,
...
@@ -383,11 +383,20 @@ UtilTransactions::clearTable3(Ndb* pNdb,
pOp
=
pTrans
->
getNdbScanOperation
(
tab
.
getName
());
pOp
=
pTrans
->
getNdbScanOperation
(
tab
.
getName
());
if
(
pOp
==
NULL
)
{
if
(
pOp
==
NULL
)
{
err
=
pTrans
->
getNdbError
();
if
(
err
.
status
==
NdbError
::
TemporaryError
){
ERR
(
err
);
pNdb
->
closeTransaction
(
pTrans
);
NdbSleep_MilliSleep
(
50
);
par
=
1
;
goto
restart
;
}
goto
failed
;
goto
failed
;
}
}
NdbResultSet
*
rs
=
pOp
->
readTuplesExclusive
(
par
);
NdbResultSet
*
rs
=
pOp
->
readTuplesExclusive
(
par
);
if
(
rs
==
0
)
{
if
(
rs
==
0
)
{
err
=
pTrans
->
getNdbError
();
goto
failed
;
goto
failed
;
}
}
...
@@ -647,8 +656,16 @@ UtilTransactions::scanReadRecords(Ndb* pNdb,
...
@@ -647,8 +656,16 @@ UtilTransactions::scanReadRecords(Ndb* pNdb,
pOp
=
pTrans
->
getNdbScanOperation
(
tab
.
getName
());
pOp
=
pTrans
->
getNdbScanOperation
(
tab
.
getName
());
if
(
pOp
==
NULL
)
{
if
(
pOp
==
NULL
)
{
ERR
(
pTrans
->
getNdbError
()
);
const
NdbError
err
=
pNdb
->
getNdbError
(
);
pNdb
->
closeTransaction
(
pTrans
);
pNdb
->
closeTransaction
(
pTrans
);
if
(
err
.
status
==
NdbError
::
TemporaryError
){
ERR
(
err
);
NdbSleep_MilliSleep
(
50
);
retryAttempt
++
;
continue
;
}
ERR
(
err
);
return
NDBT_FAILED
;
return
NDBT_FAILED
;
}
}
...
...
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