]> git.sur5r.net Git - bacula/bacula/commitdiff
Remove restriction on using the scratch pool that can cause restore failures
authorKern Sibbald <kern@sibbald.com>
Sat, 28 Jan 2017 13:11:37 +0000 (14:11 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 28 Jan 2017 13:11:37 +0000 (14:11 +0100)
bacula/src/dird/ua_run.c

index beb67e31747f6a4575638b617d71ff3212d5551b..e5961c80600f78ce66c7b85945669a3779db8676 100644 (file)
@@ -1071,11 +1071,6 @@ static bool set_run_context_in_jcr(UAContext *ua, JCR *jcr, run_ctx &rc)
       jcr->IgnoreDuplicateJobChecking = rc.ignoreduplicatecheck;
    }
 
-   /* Not a good idea to start a job with the Scratch pool */
-   if (rc.pool && strcmp(rc.pool->name(), NT_("Scratch")) == 0) {
-      ua->send_msg(_("Pool \"Scratch\" not valid.\n"));
-      return false;
-   }
    return true;
 }