From 932802e14e88c13be5ede6c873eec86e8eea921a Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 1 Nov 2012 20:40:40 +0100 Subject: [PATCH] Fix spooldata, accurate and ingnoreduplicate run argument When using "run accurate=yes job=MyJob yes", the job was not using the accurate option. This is now fixed. --- bacula/src/dird/ua_run.c | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/bacula/src/dird/ua_run.c b/bacula/src/dird/ua_run.c index e9c563d186..f66bdd572e 100644 --- a/bacula/src/dird/ua_run.c +++ b/bacula/src/dird/ua_run.c @@ -208,24 +208,6 @@ int modify_job_parameters(UAContext *ua, JCR *jcr, run_ctx &rc) { int i, opt; - /* Some options are not available through the menu - * TODO: Add an advanced menu? - */ - if (rc.spool_data_set) { - jcr->spool_data = rc.spool_data; - } - - if (rc.accurate_set) { - jcr->accurate = rc.accurate; - } - - /* Used by migration jobs that can have the same name, - * but can run at the same time - */ - if (rc.ignoreduplicatecheck_set) { - jcr->IgnoreDuplicateJobChecking = rc.ignoreduplicatecheck; - } - /* * At user request modify parameters of job to be run. */ @@ -570,6 +552,25 @@ static bool reset_restore_context(UAContext *ua, JCR *jcr, run_ctx &rc) jcr->RestoreJobId = str_to_int64(rc.jid); rc.jid = 0; } + + /* Some options are not available through the menu + * TODO: Add an advanced menu? + */ + if (rc.spool_data_set) { + jcr->spool_data = rc.spool_data; + } + + if (rc.accurate_set) { + jcr->accurate = rc.accurate; + } + + /* Used by migration jobs that can have the same name, + * but can run at the same time + */ + if (rc.ignoreduplicatecheck_set) { + jcr->IgnoreDuplicateJobChecking = rc.ignoreduplicatecheck; + } + return true; } -- 2.39.5