]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Revert "Fix #7321 About issue when stopping jobs waiting for resources"
authorEric Bollengier <eric@baculasystems.com>
Wed, 12 May 2021 07:14:47 +0000 (09:14 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:02 +0000 (09:03 +0100)
This reverts commit 8ad330d63a73a59af5e5e26905bf453fa5534991.

bacula/src/stored/askdir.c

index 165dbfbf14c0bbf9e219f259425427f2f84ee28e..1c3125092f4e24ea9738a297e60d4b58707185c6 100644 (file)
@@ -866,16 +866,6 @@ bool dir_ask_sysop_to_create_appendable_volume(DCR *dcr)
          Dmsg1(dbglvl, "Poll timeout in create append vol on device %s\n", dev->print_name());
          continue;
       }
-
-      if (stat == W_WAKE) {
-         /* Job could be marked to stopped, need to break */
-         Mmsg0(dev->errmsg, _("Job was stopped by the user.\n"));
-         Jmsg(jcr, M_FATAL, 0, "%s", dev->errmsg);
-         Dmsg1(dbglvl, "Job marked to be stopped. Gave up waiting on device %s\n", dev->print_name());
-         dev->poll = false;
-         return false;
-      }
-
       if (stat == W_TIMEOUT) {
          if (!double_dev_wait_time(dev)) {
             Mmsg(dev->errmsg, _("Max time exceeded waiting to mount Storage Device %s for Job %s\n"),