From e173d6d190d8cdb1fff798c3aa40988fe83590dd Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 19 Nov 2017 14:43:12 +0100 Subject: [PATCH] Backout vol size tests in previous attempt to fix bug #2349 --- bacula/src/dird/next_vol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5