From: Kern Sibbald Date: Thu, 24 Feb 2011 17:18:54 +0000 (+0100) Subject: Use jcr->is_xxx instead of direct tests X-Git-Tag: Release-7.0.0~1099 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fc5a3a3e031480af8394af3b5664cce17cce0187;p=bacula%2Fbacula Use jcr->is_xxx instead of direct tests --- diff --git a/bacula/src/dird/ua_run.c b/bacula/src/dird/ua_run.c index 95036f5eb1..5eeaa07c32 100644 --- a/bacula/src/dird/ua_run.c +++ b/bacula/src/dird/ua_run.c @@ -525,8 +525,8 @@ static bool reset_restore_context(UAContext *ua, JCR *jcr, run_ctx &rc) /* If pool changed, update migration write storage */ - if (jcr->getJobType() == JT_MIGRATE || jcr->getJobType() == JT_COPY || - (jcr->getJobType() == JT_BACKUP && jcr->getJobLevel() == L_VIRTUAL_FULL)) { + if (jcr->is_JobType(JT_MIGRATE) || jcr->is_JobType(JT_COPY) || + (jcr->is_JobType(JT_BACKUP) && jcr->is_JobLevel(L_VIRTUAL_FULL))) { if (!set_migration_wstorage(jcr, rc.pool)) { return false; }