From: Kern Sibbald Date: Fri, 21 Dec 2007 14:11:40 +0000 (+0000) Subject: Tweaks X-Git-Tag: Release-3.0.0~2130 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2fdff3f3b7149496ea8d5168237fb2afeaf71e26;p=bacula%2Fbacula Tweaks git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6081 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/dird/ua_run.c b/bacula/src/dird/ua_run.c index 5d2de5c677..40eeb6e14a 100644 --- a/bacula/src/dird/ua_run.c +++ b/bacula/src/dird/ua_run.c @@ -449,10 +449,10 @@ try_again: Dmsg1(800, "Calling run_job job=%x\n", jcr->job); start_job: - Dmsg3(000, "JobId=%u using pool %s priority=%d\n", (int)jcr->JobId, + Dmsg3(100, "JobId=%u using pool %s priority=%d\n", (int)jcr->JobId, jcr->pool->name(), jcr->JobPriority); JobId = run_job(jcr); - Dmsg4(000, "JobId=%u NewJobId=%d using pool %s priority=%d\n", (int)jcr->JobId, + Dmsg4(100, "JobId=%u NewJobId=%d using pool %s priority=%d\n", (int)jcr->JobId, JobId, jcr->pool->name(), jcr->JobPriority); free_jcr(jcr); /* release jcr */ if (JobId == 0) { diff --git a/bacula/src/stored/acquire.c b/bacula/src/stored/acquire.c index 2fba360056..c8cb5571f8 100644 --- a/bacula/src/stored/acquire.c +++ b/bacula/src/stored/acquire.c @@ -373,12 +373,14 @@ DCR *acquire_device_for_append(DCR *dcr) do_mount = strcmp(dcr->VolCatInfo.VolCatStatus, "Recycle") == 0; Dmsg2(190, "jid=%u Correct tape mounted. recycle=%d\n", (uint32_t)jcr->JobId, do_mount); +#ifdef xxx if (do_mount && dev->num_writers != 0) { Jmsg(jcr, M_FATAL, 0, _("Cannot recycle volume \"%s\"" " on device %s because it is in use by another job.\n"), dev->VolHdr.VolumeName, dev->print_name()); goto get_out; } +#endif if (dev->num_writers == 0) { memcpy(&dev->VolCatInfo, &dcr->VolCatInfo, sizeof(dev->VolCatInfo)); }