From: Marco van Wieringen Date: Wed, 25 Feb 2009 18:19:24 +0000 (+0000) Subject: Don't try to copy empty jobs (e.g. with jobbytes == 0) X-Git-Tag: Release-3.0.0~199 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f6b3ac0ca9ed518c0c6eda083f38b61f5d7e47e0;p=bacula%2Fbacula Don't try to copy empty jobs (e.g. with jobbytes == 0) which gives Unable to get Job Volume Parameters errors. Which leads to copying the same job over and over again. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8493 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/dird/migrate.c b/bacula/src/dird/migrate.c index 9bdfab58f9..f4beca3226 100644 --- a/bacula/src/dird/migrate.c +++ b/bacula/src/dird/migrate.c @@ -588,6 +588,7 @@ const char *sql_jobids_of_pool_uncopied_jobs = "SELECT DISTINCT Job.JobId,Job.StartTime FROM Job,Pool" " WHERE Pool.Name = '%s' AND Pool.PoolId = Job.PoolId" " AND Job.Type = 'B' AND Job.JobStatus = 'T'" + " AND Job.jobBytes > 0" " AND Job.JobId NOT IN" " (SELECT PriorJobId FROM Job WHERE" " Type IN ('B','C') AND Job.JobStatus = 'T'" diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index 2656490c3e..0f7cf5e127 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -25,6 +25,10 @@ filepattern (restore with regex in bsr) mixed priorities General: +25Feb09 +mvw Don't try to copy empty jobs (e.g. with jobbytes == 0) + which gives Unable to get Job Volume Parameters errors. + Which leads to copying the same job over and over again. 21Feb09 kes Ensure that src/qt-console/.libs is cleaned properly 20Feb09