]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/ua_purge.c
Disabled ActionOnPurge waiting for a fix
[bacula/bacula] / bacula / src / dird / ua_purge.c
index dc101f15002f953d8e51763a65b6d45415f55e55..c031febc125efd5a4ea8916b6cbf0b01e8408dc3 100644 (file)
@@ -588,6 +588,8 @@ bool mark_media_purged(UAContext *ua, MEDIA_DBR *mr)
          return false;
       }
 
+/* Code currently disabled */
+#if 0
       if (mr->ActionOnPurge > 0) {
          /* Send the command to truncate the volume after purge. If this feature
           * is disabled for the specific device, this will be a no-op.
@@ -598,7 +600,7 @@ bool mark_media_purged(UAContext *ua, MEDIA_DBR *mr)
             bash_spaces(dev_name);
             bash_spaces(mr->VolumeName);
             sd->fsend("action_on_purge %s vol=%s action=%d",
-                      ua->jcr->wstore->dev_name(),
+                      dev_name,
                      mr->VolumeName,
                      mr->ActionOnPurge);
             unbash_spaces(mr->VolumeName);
@@ -614,6 +616,7 @@ bool mark_media_purged(UAContext *ua, MEDIA_DBR *mr)
            return false;
         }
       }
+#endif
 
       pm_strcpy(jcr->VolumeName, mr->VolumeName);
       generate_job_event(jcr, "VolumePurged");