From d9ab470cca192759f4208f0eeea25c7c71c99450 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 28 Sep 2010 19:03:08 +0200 Subject: [PATCH] Cleanup BVFS cache when deleting a Job --- bacula/src/dird/ua_purge.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bacula/src/dird/ua_purge.c b/bacula/src/dird/ua_purge.c index 33adb4012b..bd0efcea7d 100644 --- a/bacula/src/dird/ua_purge.c +++ b/bacula/src/dird/ua_purge.c @@ -427,6 +427,9 @@ void purge_jobs_from_catalog(UAContext *ua, char *jobs) db_sql_query(ua->db, query.c_str(), NULL, (void *)NULL); Dmsg1(050, "Delete RestoreObject sql=%s\n", query.c_str()); + Mmsg(query, "DELETE FROM PathVisibility WHERE JobId IN (%s)", jobs); + db_sql_query(ua->db, query.c_str(), NULL, (void *)NULL); + Dmsg1(050, "Delete PathVisibility sql=%s\n", query.c_str()); upgrade_copies(ua, jobs); -- 2.39.5