From: Kern Sibbald Date: Sat, 26 Jun 2010 10:38:48 +0000 (+0200) Subject: Fix bug #1577 During migration: ERROR in block.c:950 Failed ASSERT: dev->is_open... X-Git-Tag: Release-5.0.3~115 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=80c3acff2eaff6497cfbd1e4d8e76801f62f54ba;p=bacula%2Fbacula Fix bug #1577 During migration: ERROR in block.c:950 Failed ASSERT: dev->is_open() by moving and commenting out the ASSERT() --- diff --git a/bacula/src/stored/block.c b/bacula/src/stored/block.c index 313a3dde6f..a5b7c9c7fa 100644 --- a/bacula/src/stored/block.c +++ b/bacula/src/stored/block.c @@ -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;