Skip to content

Commit

Permalink
bugfix: dbID is not setl to -1 in standaloneJob any more
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato authored and ens-bwalts committed Jan 30, 2020
1 parent 4cdbf39 commit ee983eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Bio/EnsEMBL/Hive/RunnableDB/DatabaseDumper.pm
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ sub fetch_input {
# Check whether the current database has been restored from a snapshot.
# If it is the case, we shouldn't re-dump and overwrite the file.
# We also check here the value of the "skip_dump" parameter
my $completion_signature = sprintf('dump_%d_restored', $self->input_job->dbID < 0 ? 0 : $self->input_job->dbID);
my $completion_signature = sprintf('dump_%d_restored', defined $self->input_job->dbID ? $self->input_job->dbID : 0);

if ($self->param('skip_dump') or $self->param($completion_signature)) {
# A command that always succeeds
Expand Down

0 comments on commit ee983eb

Please sign in to comment.