]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bug #1577 During migration: ERROR in block.c:950 Failed ASSERT: dev->is_open...
authorKern Sibbald <kern@sibbald.com>
Sat, 26 Jun 2010 10:38:48 +0000 (12:38 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 26 Jun 2010 10:39:45 +0000 (12:39 +0200)
bacula/src/stored/block.c

index 313a3dde6f84951cec79a69df9ac74edb53658eb..a5b7c9c7fa24fe1b4e5af8eb4657d9a2fc9c0419 100644 (file)
@@ -947,7 +947,6 @@ bool read_block_from_dev(DCR *dcr, bool check_block_numbers)
    if (job_canceled(jcr)) {
       return false;
    }
-   ASSERT(dev->is_open());
    
    if (dev->at_eot()) {
       return false;
@@ -955,6 +954,9 @@ bool read_block_from_dev(DCR *dcr, bool check_block_numbers)
    looping = 0;
    Dmsg1(250, "Full read in read_block_from_device() len=%d\n",
          block->buf_len);
+
+// ASSERT(dev->is_open());
+
 reread:
    if (looping > 1) {
       dev->dev_errno = EIO;