From 80c3acff2eaff6497cfbd1e4d8e76801f62f54ba Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 26 Jun 2010 12:38:48 +0200 Subject: [PATCH] Fix bug #1577 During migration: ERROR in block.c:950 Failed ASSERT: dev->is_open() by moving and commenting out the ASSERT() --- bacula/src/stored/block.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5