]> git.sur5r.net Git - bacula/bacula/commitdiff
Add pool to migration run command
authorKern Sibbald <kern@sibbald.com>
Wed, 19 Oct 2011 17:14:59 +0000 (19:14 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:06 +0000 (14:50 +0200)
bacula/src/dird/migrate.c

index 43abf952588cd664818842b28d4b1fd677de5674..0b4d8cda7e85bac07368776569bee00e3f26bc0d 100644 (file)
@@ -917,8 +917,9 @@ static void start_migration_job(JCR *jcr)
    UAContext *ua = new_ua_context(jcr);
    char ed1[50];
    ua->batch = true;
-   Mmsg(ua->cmd, "run job=\"%s\" jobid=%s ignoreduplicatecheck=yes", jcr->job->name(),
-        edit_uint64(jcr->MigrateJobId, ed1));
+   Mmsg(ua->cmd, "run job=\"%s\" jobid=%s allowduplicates=yes pool=\"%s\"", 
+        jcr->job->name(), edit_uint64(jcr->MigrateJobId, ed1),
+        jcr->pool->name());
    Dmsg2(dbglevel, "=============== %s cmd=%s\n", jcr->get_OperationName(), ua->cmd);
    parse_ua_args(ua);                 /* parse command */
    JobId_t jobid = run_cmd(ua, ua->cmd);