Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
a63e0880
Commit
a63e0880
authored
Feb 22, 2013
by
Leo Gordon
Browse files
reload the cached data_dbc() value on change of param('db_conn')
parent
163f7250
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
modules/Bio/EnsEMBL/Hive/Process.pm
modules/Bio/EnsEMBL/Hive/Process.pm
+7
-4
No files found.
modules/Bio/EnsEMBL/Hive/Process.pm
View file @
a63e0880
...
...
@@ -377,13 +377,16 @@ sub dbc {
=cut
sub
data_dbc
{
my
$self
=
shift
;
my
$self
=
shift
@_
;
my
$given_db_conn
=
shift
@
_
||
$self
->
param
('
db_conn
')
||
$self
;
if
(
@
_
or
!
$self
->
{'
_data_dbc
'})
{
$self
->
{'
_data_dbc
'}
=
$self
->
go_figure_dbc
(
shift
@
_
||
$self
->
param
('
db_conn
')
||
$self
->
dbc
);
if
(
!
$self
->
{'
_cached_db_conn
'}
or
$self
->
{'
_cached_db_conn
'}
!=
$given_db_conn
)
{
$self
->
{'
_cached_db_conn
'}
=
$given_db_conn
;
$self
->
{'
_cached_data_dbc
'}
=
$self
->
go_figure_dbc
(
$given_db_conn
);
}
return
$self
->
{'
_data_dbc
'};
return
$self
->
{'
_
cached_
data_dbc
'};
}
...
...
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