From: Kern Sibbald Date: Sun, 19 Nov 2017 13:43:12 +0000 (+0100) Subject: Backout vol size tests in previous attempt to fix bug #2349 X-Git-Tag: Release-9.0.6~30 X-Git-Url: https://git.sur5r.net/?p=bacula%2Fbacula;a=commitdiff_plain;h=e173d6d190d8cdb1fff798c3aa40988fe83590dd Backout vol size tests in previous attempt to fix bug #2349 --- diff --git a/bacula/src/dird/next_vol.c b/bacula/src/dird/next_vol.c index 0b6a48dadc..f960000bb3 100644 --- a/bacula/src/dird/next_vol.c +++ b/bacula/src/dird/next_vol.c @@ -271,14 +271,14 @@ bool has_volume_expired(JCR *jcr, MEDIA_DBR *mr) expired = true; /* Now see if Volume should only be used once */ - } else if (mr->VolBytes > 1000 && jcr->pool->use_volume_once) { + } else if (mr->VolBytes > 0 && jcr->pool->use_volume_once) { Jmsg(jcr, M_INFO, 0, _("Volume used once. " "Marking Volume \"%s\" as Used.\n"), mr->VolumeName); bstrncpy(mr->VolStatus, "Used", sizeof(mr->VolStatus)); expired = true; /* Now see if Max Jobs written to volume */ - } else if (mr->MaxVolJobs > 1000 && mr->MaxVolJobs <= mr->VolJobs) { + } else if (mr->MaxVolJobs > 0 && mr->MaxVolJobs <= mr->VolJobs) { Jmsg(jcr, M_INFO, 0, _("Max Volume jobs=%s exceeded. " "Marking Volume \"%s\" as Used.\n"), edit_uint64_with_commas(mr->MaxVolJobs, ed1), mr->VolumeName);