]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix changing read device during VirtualFull in SD
authorKern Sibbald <kern@sibbald.com>
Sun, 11 Oct 2009 14:12:26 +0000 (16:12 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 11 Oct 2009 14:12:26 +0000 (16:12 +0200)
bacula/src/stored/reserve.c
bacula/technotes

index 2326d1bb9e0fc33167f0dac100ce71bc06461b6b..2a1f3031f5ee2e74ddaa80b67714c0a9a20904e1 100644 (file)
@@ -634,7 +634,7 @@ static int reserve_device(RCTX &rctx)
 
    rctx.suitable_device = true;
    Dmsg1(dbglvl, "try reserve %s\n", rctx.device->hdr.name);
-   rctx.jcr->dcr = dcr = new_dcr(rctx.jcr, rctx.jcr->dcr, rctx.device->dev);
+   dcr = new_dcr(rctx.jcr, rctx.jcr->dcr, rctx.device->dev);
    if (!dcr) {
       BSOCK *dir = rctx.jcr->dir_bsock;
       dir->fsend(_("3926 Could not get dcr for device: %s\n"), rctx.device_name);
index 693642b435d02ba926c765c246df403ff42a2a4b..f76aafa251abbfd86b9399471ddc97705542378e 100644 (file)
@@ -2,6 +2,9 @@
           
 General:
 
+11Oct09
+kes  Make fix for VirtualFull changing device based on suggestion by
+     Nicolae Mihalache <mache@abcpages.com>
 08Oct09
 ebl  Add listall command to autochanger interface
 ebl  Tweak autochanger screen in bat with new commands