From: Eric Bollengier Date: Fri, 18 Jun 2010 07:03:28 +0000 (+0200) Subject: Adapt new prune code with old db_accurate_get_jobids() X-Git-Tag: Release-5.2.1~1256 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f011d2074c1970cce194056ea6d62b6029b037b;p=bacula%2Fbacula Adapt new prune code with old db_accurate_get_jobids() --- diff --git a/bacula/src/dird/ua_prune.c b/bacula/src/dird/ua_prune.c index 3113057c2e..f552d161ce 100644 --- a/bacula/src/dird/ua_prune.c +++ b/bacula/src/dird/ua_prune.c @@ -405,7 +405,7 @@ int prune_jobs(UAContext *ua, CLIENT *client, POOL *pool, int JobType) char ed1[50], ed2[50]; alist *jobids_check=NULL; struct accurate_check_ctx *elt; - db_list_ctx jobids; + db_list_ctx jobids, tempids; JOB_DBR jr; db_lock(ua->db); @@ -495,7 +495,8 @@ int prune_jobs(UAContext *ua, CLIENT *client, POOL *pool, int JobType) foreach_alist(elt, jobids_check) { jr.ClientId = elt->ClientId; jr.FileSetId = elt->FileSetId; - db_accurate_get_jobids(ua->jcr, ua->db, &jr, &jobids); + db_accurate_get_jobids(ua->jcr, ua->db, &jr, &tempids); + jobids.cat(tempids); } /* Discard latest Verify level=InitCatalog job */