Skip to content

Commit

Permalink
Fix btape problem with new reservation logic
Browse files Browse the repository at this point in the history
btape was not able to reserve the first tape
for reading because dcr->m_will_write was not cleared.
  • Loading branch information
pstorz authored and Marco van Wieringen committed Feb 17, 2015
1 parent bd050a9 commit b3dc374
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stored/btape.c
Expand Up @@ -2545,6 +2545,8 @@ static bool do_unfill()

dev->close(dcr);
dev->num_writers = 0;
jcr->dcr->clear_will_write();

if (!acquire_device_for_read(dcr)) {
Pmsg1(-1, "%s", dev->errmsg);
goto bail_out;
Expand Down

0 comments on commit b3dc374

Please sign in to comment.