From b1040bafdbebe603849347c322ceb987591ae444 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 22 Jun 2014 09:15:51 +0200 Subject: [PATCH] Tweak sd calls client recv retries --- bacula/src/stored/job.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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) { -- 2.39.5