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
2d64907d
Commit
2d64907d
authored
Jun 13, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug#10294 - ndb restore with #concurrent transactions < parallelism
Enable retry on startTransaction
parent
77ef82cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
ndb/tools/restore/consumer_restore.cpp
ndb/tools/restore/consumer_restore.cpp
+16
-8
No files found.
ndb/tools/restore/consumer_restore.cpp
View file @
2d64907d
...
...
@@ -288,12 +288,11 @@ void BackupRestore::tuple_a(restore_callback_t *cb)
cb
->
connection
=
m_ndb
->
startTransaction
();
if
(
cb
->
connection
==
NULL
)
{
/*
if (errorHandler(cb))
{
if
(
errorHandler
(
cb
))
{
m_ndb
->
sendPollNdb
(
3000
,
1
);
continue
;
}
*/
}
exitHandler
();
}
// if
...
...
@@ -409,9 +408,17 @@ void BackupRestore::cback(int result, restore_callback_t *cb)
*/
bool
BackupRestore
::
errorHandler
(
restore_callback_t
*
cb
)
{
NdbError
error
=
cb
->
connection
->
getNdbError
();
m_ndb
->
closeTransaction
(
cb
->
connection
);
cb
->
connection
=
0
;
NdbError
error
;
if
(
cb
->
connection
)
{
error
=
cb
->
connection
->
getNdbError
();
m_ndb
->
closeTransaction
(
cb
->
connection
);
cb
->
connection
=
0
;
}
else
{
error
=
m_ndb
->
getNdbError
();
}
Uint32
sleepTime
=
100
+
cb
->
retries
*
300
;
...
...
@@ -426,6 +433,7 @@ bool BackupRestore::errorHandler(restore_callback_t *cb)
break
;
case
NdbError
:
:
TemporaryError
:
err
<<
"Temporary error: "
<<
error
<<
endl
;
NdbSleep_MilliSleep
(
sleepTime
);
return
true
;
// RETRY
...
...
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