Skip to content

Commit

Permalink
consolidate: inherit allow_mixed_priority flag
Browse files Browse the repository at this point in the history
make virtualfull jobs spawned by consolidate job inherit
allow_mixed_priority flag from the consolidate job.
  • Loading branch information
SamuelBoerlin authored and arogge committed Oct 19, 2023
1 parent cad30ca commit d163c13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/dird/consolidate.cc
Expand Up @@ -66,10 +66,11 @@ static inline void StartNewConsolidationJob(JobControlRecord* jcr,

ua = new_ua_context(jcr);
ua->batch = true;
Mmsg(ua->cmd, "run job=\"%s\" jobid=%s level=VirtualFull priority=%d %s", jobname,
Mmsg(ua->cmd, "run job=\"%s\" jobid=%s level=VirtualFull priority=%d accurate=%s allowmixedpriority=%s", jobname,
jcr->dir_impl->vf_jobids,
jcr->JobPriority,
jcr->accurate ? "accurate=yes" : "accurate=no");
jcr->accurate ? "yes" : "no",
jcr->allow_mixed_priority ? "yes" : "no");

Dmsg1(debuglevel, "=============== consolidate cmd=%s\n", ua->cmd);
ParseUaArgs(ua); /* parse command */
Expand Down

0 comments on commit d163c13

Please sign in to comment.