From: Kern Sibbald Date: Tue, 14 Jun 2011 15:32:11 +0000 (+0200) Subject: Make bad Storage check in is_on_same_storage non-fatal X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bc35b90ce59afa9d5ff4fd4b71a44719e58a211f;p=bacula%2Fbacula Make bad Storage check in is_on_same_storage non-fatal --- diff --git a/bacula/src/dird/restore.c b/bacula/src/dird/restore.c index 741f73b9af..a04e1ac3bd 100644 --- a/bacula/src/dird/restore.c +++ b/bacula/src/dird/restore.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2000-2010 Free Software Foundation Europe e.V. + Copyright (C) 2000-2011 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -171,7 +171,7 @@ static bool is_on_same_storage(JCR *jcr, char *new_one) if (jcr->FDVersion < 2) { return true; } - /* we are in init loop ? shoudn't fall here */ + /* we are in init loop ? shoudn't fail here */ if (!*new_one) { return true; } @@ -181,9 +181,8 @@ static bool is_on_same_storage(JCR *jcr, char *new_one) } new_store = (STORE *)GetResWithName(R_STORAGE, new_one); if (!new_store) { - Jmsg(jcr, M_FATAL, 0, + Jmsg(jcr, M_WARNING, 0, _("Could not get storage resource '%s'.\n"), new_one); - jcr->setJobStatus(JS_ErrorTerminated); return false; } /* if Port and Hostname/IP are same, we are talking to the same