From: Kern Sibbald Date: Sun, 22 Jun 2014 07:15:51 +0000 (+0200) Subject: Tweak sd calls client recv retries X-Git-Tag: Release-7.0.5~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b1040bafdbebe603849347c322ceb987591ae444;p=bacula%2Fbacula Tweak sd calls client recv retries --- diff --git a/bacula/src/stored/job.c b/bacula/src/stored/job.c index d24b8369bd..82546db35d 100644 --- a/bacula/src/stored/job.c +++ b/bacula/src/stored/job.c @@ -200,13 +200,13 @@ bool run_cmd(JCR *jcr) } else { break; } - if (stat <= 0) { - berrno be; - Jmsg1(jcr, M_FATAL, 0, _("Recv request to Client failed. ERR=%s\n"), - be.bstrerror()); - Dmsg1(050, _("Recv request to Client failed. ERR=%s\n"), be.bstrerror()); - return false; - } + } + if (stat <= 0) { + berrno be; + Jmsg1(jcr, M_FATAL, 0, _("Recv request to Client failed. ERR=%s\n"), + be.bstrerror()); + Dmsg1(050, _("Recv request to Client failed. ERR=%s\n"), be.bstrerror()); + return false; } Dmsg1(050, "Got from FD: %s\n", cl->msg); if (sscanf(cl->msg, "Hello Bacula SD: Start Job %127s %d %d", job_name, &fd_version, &sd_version) != 3) {