Commit f66a8e1d authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Standalone jobs have job_id=-1, and "-" is not allowed in parameter names

parent adf4932c
......@@ -197,7 +197,7 @@ sub run {
# 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);
my $completion_signature = sprintf('dump_%d_restored', $self->input_job->dbID < 0 ? 0 : $self->input_job->dbID);
return if $self->param('skip_dump') or $self->param($completion_signature);
# OK, we can dump
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment