From: Kern Sibbald Date: Thu, 24 Feb 2011 17:18:54 +0000 (+0100) Subject: Use jcr->is_xxx instead of direct tests X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cf4e8466be04e0a0da867af3acba8c1d0d9f2a25;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; }