From 71f047494389e44da92ef8391169148f7ce36de2 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 31 Jul 2010 22:01:32 +0200 Subject: [PATCH] Revert to old block.c to fix recycling --- bacula/src/stored/block.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/bacula/src/stored/block.c b/bacula/src/stored/block.c index f23d666dec..8bde1b609d 100644 --- a/bacula/src/stored/block.c +++ b/bacula/src/stored/block.c @@ -381,9 +381,6 @@ bool write_block_to_device(DCR *dcr) if (!write_block_to_dev(dcr)) { if (job_canceled(jcr) || jcr->getJobType() == JT_SYSTEM) { - if (jcr->getJobType() != JT_SYSTEM) { - terminate_writing_volume(dcr); - } stat = false; } else { stat = fixup_device_block_write_error(dcr); @@ -419,7 +416,6 @@ bool write_block_to_dev(DCR *dcr) return true; #endif if (job_canceled(jcr)) { - terminate_writing_volume(dcr); return false; } @@ -734,10 +730,6 @@ static bool terminate_writing_volume(DCR *dcr) DEVICE *dev = dcr->dev; bool ok = true; - if (dev->at_eot()) { - return true; - } - /* Create a JobMedia record to indicated end of tape */ dev->VolCatInfo.VolCatFiles = dev->file; if (!dir_create_jobmedia_record(dcr)) { -- 2.39.5