]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix failed mount request in btape fill test
authorEric Bollengier <eric@baculasystems.com>
Thu, 20 Nov 2014 12:45:34 +0000 (13:45 +0100)
committerEric Bollengier <eric@baculasystems.com>
Mon, 16 Mar 2015 12:53:31 +0000 (13:53 +0100)
bacula/src/stored/btape.c

index 109294be968ef1ca20268cedfe9ddc47c01e78ca..c5274675464ad053406d312112e8df2b67996a5d 100644 (file)
@@ -2522,6 +2522,7 @@ static bool do_unfill()
 
    dev->close();
    dev->num_writers = 0;
+   dcr->clear_writing();
    if (!acquire_device_for_read(dcr)) {
       Pmsg1(-1, "%s", dev->print_errmsg());
       goto bail_out;
@@ -2585,6 +2586,7 @@ static bool do_unfill()
    }
 
    dev->clear_read();
+   dcr->clear_writing();
    if (!acquire_device_for_read(dcr)) {
       Pmsg1(-1, "%s", dev->print_errmsg());
       goto bail_out;