From: Eric Bollengier Date: Fri, 26 Nov 2010 09:44:42 +0000 (+0100) Subject: Set bwlimit to jcr before sd socket X-Git-Tag: Release-5.2.1~858 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e316af7317b4cd9326c43d4023d62cf7fe283aff;p=bacula%2Fbacula Set bwlimit to jcr before sd socket --- diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index 4b29d077cf..c42753c482 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -495,10 +495,10 @@ static int setbandwidth_cmd(JCR *jcr) if(!(cjcr=get_jcr_by_full_name(Job))) { dir->fsend(_("2901 Job %s not found.\n"), Job); } else { + cjcr->max_bandwidth = bw; if (cjcr->store_bsock) { cjcr->store_bsock->set_bwlimit(bw); } - cjcr->max_bandwidth = bw; free_jcr(cjcr); }