From f6b3ac0ca9ed518c0c6eda083f38b61f5d7e47e0 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Wed, 25 Feb 2009 18:19:24 +0000 Subject: [PATCH] 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 --- bacula/src/dird/migrate.c | 1 + bacula/technotes-2.5 | 4 ++++ 2 files changed, 5 insertions(+) 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 -- 2.39.5