Skip to content

Commit

Permalink
Revert "Fix for purge command not purging and truncating."
Browse files Browse the repository at this point in the history
This reverts commit e30d3b9.
  • Loading branch information
Marco van Wieringen committed Feb 27, 2014
1 parent e30d3b9 commit a88065c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/dird/ua_purge.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,18 @@ int purgecmd(UAContext *ua, const char *cmd)
}
/* Volume */
case 2:
/* Perform ActionOnPurge (action=truncate) */
if (find_arg(ua, "action") >= 0) {
return action_on_purge_cmd(ua, ua->cmd);
}

while ((i=find_arg(ua, NT_("volume"))) >= 0) {
if (select_media_dbr(ua, &mr)) {
purge_jobs_from_volume(ua, &mr, /*force*/true);
}
*ua->argk[i] = 0; /* zap keyword already seen */
ua->send_msg("\n");
}

/* Perform ActionOnPurge (action=truncate) */
if (find_arg(ua, "action") >= 0) {
return action_on_purge_cmd(ua, ua->cmd);
}
return 1;
/* Quota */
case 3:
Expand Down

0 comments on commit a88065c

Please sign in to comment.