X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Fappend.c;h=89953b466b066e6d136086025285b54cea0652c7;hb=c66d0785ff68244b8ce0b7ebb5817492448786c1;hp=9910ce1c0e54584170d2a431a9b441c830839dee;hpb=eaa5e0915e2cc73aec3d8383fe73a9689490d661;p=bacula%2Fbacula diff --git a/bacula/src/stored/append.c b/bacula/src/stored/append.c index 9910ce1c0e..89953b466b 100644 --- a/bacula/src/stored/append.c +++ b/bacula/src/stored/append.c @@ -205,8 +205,6 @@ bool do_append_data(JCR *jcr) if (!write_block_to_device(dcr)) { Dmsg2(90, "Got write_block_to_dev error on device %s. %s\n", dev->print_name(), dev->bstrerror()); - Jmsg2(jcr, M_FATAL, 0, _("Fatal append error on device %s: ERR=%s\n"), - dev->print_name(), dev->bstrerror()); ok = false; break; } @@ -296,6 +294,7 @@ bool do_append_data(JCR *jcr) if (!ok) { discard_data_spool(dcr); } else { + /* Note: if commit is OK, the device will remain locked */ commit_data_spool(dcr); } @@ -303,7 +302,10 @@ bool do_append_data(JCR *jcr) ok = dvd_close_job(dcr); /* do DVD cleanup if any */ } - /* Release the device -- and send final Vol info to DIR */ + /* + * Release the device -- and send final Vol info to DIR + * and unlock it. + */ release_device(dcr); if (!ok || job_canceled(jcr)) {