Skip to content

Commit

Permalink
ua_run: apply max_concurrent_jobs from consolidate job
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelBoerlin authored and arogge committed Oct 19, 2023
1 parent ad38e88 commit 5f8e7eb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions core/src/dird/ua_run.cc
Expand Up @@ -1008,6 +1008,19 @@ static bool ResetRestoreContext(UaContext* ua,
jcr->dir_impl->IgnoreDuplicateJobChecking = rc.ignoreduplicatecheck;
}

/* If this is a virtualfull spawned by a consolidate job
* then the same rjs is used so that max concurrent jobs
* of the consolidate job applies.
*/
if (rc.consolidate_job) {
if (!jcr->is_JobLevel(L_VIRTUAL_FULL)) {
ua->SendMsg(_("Consolidate Job option is only valid for virtual full jobs.\n"));
return false;
}
jcr->dir_impl->rjs = rc.consolidate_job->rjs;
jcr->dir_impl->max_concurrent_jobs = rc.consolidate_job->MaxConcurrentJobs;
}

return true;
}

Expand Down

0 comments on commit 5f8e7eb

Please sign in to comment.