From 002ceddbdeeef48275b0662c44d6f71bc06edf47 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 26 May 2007 07:08:12 +0000 Subject: [PATCH] Fix reload bug that reset StorageId to zero. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4907 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/dird.c | 10 +++++----- bacula/src/qt-console/bat.pro.in | 2 ++ bacula/src/version.h | 4 ++-- bacula/technotes-2.1 | 2 ++ 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/bacula/src/dird/dird.c b/bacula/src/dird/dird.c index 6f92ba9aeb..10e8c96f95 100644 --- a/bacula/src/dird/dird.c +++ b/bacula/src/dird/dird.c @@ -123,8 +123,8 @@ int main (int argc, char *argv[]) { int ch; JCR *jcr; - int no_signals = FALSE; - int test_config = FALSE; + bool no_signals = false; + bool test_config = false; char *uid = NULL; char *gid = NULL; @@ -174,11 +174,11 @@ int main (int argc, char *argv[]) break; case 's': /* turn off signals */ - no_signals = TRUE; + no_signals = true; break; case 't': /* test config */ - test_config = TRUE; + test_config = true; break; case 'u': /* set uid */ @@ -468,7 +468,7 @@ void reload_config(int sig) ok = parse_config(configfile, 0, M_ERROR); /* no exit on error */ Dmsg0(100, "Reloaded config file\n"); - if (!ok || !check_resources()) { + if (!ok || !check_resources() || !check_catalog()) { rtable = find_free_reload_table_entry(); /* save new, bad table */ if (rtable < 0) { Jmsg(NULL, M_ERROR, 0, _("Please correct configuration file: %s\n"), configfile); diff --git a/bacula/src/qt-console/bat.pro.in b/bacula/src/qt-console/bat.pro.in index c0e25ad517..1076b65f57 100644 --- a/bacula/src/qt-console/bat.pro.in +++ b/bacula/src/qt-console/bat.pro.in @@ -106,3 +106,5 @@ SOURCES += joblog/joblog.cpp INSTALLS += bins INSTALLS += confs + +QMAKE_EXTRA_TARGETS += depend diff --git a/bacula/src/version.h b/bacula/src/version.h index 1dd6eb5072..70a4f489b3 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -4,8 +4,8 @@ #undef VERSION #define VERSION "2.1.11" -#define BDATE "25 May 2007" -#define LSMDATE "25May07" +#define BDATE "26 May 2007" +#define LSMDATE "26May07" #define PROG_COPYRIGHT "Copyright (C) %d-2007 Free Software Foundation Europe e.V.\n" #define BYEAR "2007" /* year for copyright messages in progs */ diff --git a/bacula/technotes-2.1 b/bacula/technotes-2.1 index 8c7817b70d..51cf119b2a 100644 --- a/bacula/technotes-2.1 +++ b/bacula/technotes-2.1 @@ -1,6 +1,8 @@ Technical notes on version 2.1 General: +26May07 +kes Fix reload bug that reset StorageId to zero. 25May07 kes Fix TLS #ifdefing when TLS turned off. kes Ensure that when labelling a tape with Slot=0 that InChanger -- 2.39.5