From: Eric Bollengier Date: Tue, 28 Sep 2010 17:03:08 +0000 (+0200) Subject: Cleanup BVFS cache when deleting a Job X-Git-Tag: Release-5.2.1~1076 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d9ab470cca192759f4208f0eeea25c7c71c99450;p=bacula%2Fbacula Cleanup BVFS cache when deleting a Job --- 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);