From: Kern Sibbald Date: Sat, 31 Jul 2010 19:52:05 +0000 (+0200) Subject: Revert block.c to fix recycling X-Git-Tag: Release-5.0.3~38 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dd22c9070a3c3e2ec92bb6fef785583a50770f3a;p=bacula%2Fbacula Revert block.c to fix recycling --- 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)) {