Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
5edd33f7
Commit
5edd33f7
authored
Jan 19, 2015
by
Leo Gordon
Browse files
PPE now returns a value
parent
71d56412
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/Bio/EnsEMBL/Hive/DBSQL/DBConnection.pm
modules/Bio/EnsEMBL/Hive/DBSQL/DBConnection.pm
+5
-1
No files found.
modules/Bio/EnsEMBL/Hive/DBSQL/DBConnection.pm
View file @
5edd33f7
...
...
@@ -118,10 +118,12 @@ sub protected_prepare_execute { # try to resolve certain mysql "Deadlocks" b
my
$retries
=
3
;
my
$retval
;
foreach
(
0
..
$retries
)
{
eval
{
my
$sth
=
$self
->
prepare
(
$sql
);
$sth
->
execute
(
@
_
);
$retval
=
$sth
->
execute
(
@
_
);
$sth
->
finish
;
1
;
}
or
do
{
...
...
@@ -134,6 +136,8 @@ sub protected_prepare_execute { # try to resolve certain mysql "Deadlocks" b
last
;
}
die
"
After
$retries
retries the query '
$sql
' is still in a deadlock: $@
"
if
(
$@
);
return
$retval
;
}
1
;
...
...
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