From 33bba0e2733b9fcbc74979e87af0257fe045506a Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 18 Jun 2010 09:03:28 +0200 Subject: [PATCH] Adapt new prune code with old db_accurate_get_jobids() --- bacula/src/dird/ua_prune.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 */ -- 2.39.5