Package: backuppc
Version: 2.1.2-4
Followup-For: Bug #369684

tags patch
thanks

I attach a patch that fixes the logic error that allowed nightly and
link jobs to run in parallel.
As a result any pending link jobs that were present in the command
queue at time the nightly jobs were queued will be finished one by one
before the nightly jobs are started.
This also fixes a comparision with the job at the wrong end of the queue
when looking for more admin jobs.

Andreas
Index: bin/BackupPC
===================================================================
RCS file: /cvsroot/backuppc/BackupPC/bin/BackupPC,v
retrieving revision 1.23
diff -u -r1.23 BackupPC
--- bin/BackupPC        29 Jan 2006 19:05:11 -0000      1.23
+++ bin/BackupPC        2 Jun 2006 00:21:33 -0000
@@ -486,7 +486,8 @@
 
     while ( $CmdJob eq "" && @CmdQueue > 0 && $RunNightlyWhenIdle != 1
             || @CmdQueue > 0 && $RunNightlyWhenIdle == 2
-                             && $bpc->isAdminJob($CmdQueue[0]->{host})
+                             && $bpc->isAdminJob($CmdJob)
+                             && $bpc->isAdminJob($CmdQueue[$#CmdQueue]->{host})
                 ) {
         local(*FH);
         $req = pop(@CmdQueue);

Reply via email to