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.0.3~128 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1983027c958b7f2582497c5cc5ad387cd1a3ecbf;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 */