From e7ea8031f6352a9347588a73d9d5cde8ebe3bd0d Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 22 Jul 2002 20:28:42 +0000 Subject: [PATCH] Fix error cannot open message file. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@68 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/ChangeLog | 47 +++++++++++++++++++++++++++++++++++++++- bacula/src/lib/message.c | 6 +++++ 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/bacula/ChangeLog b/bacula/ChangeLog index 58e869fd75..10b0c26e02 100644 --- a/bacula/ChangeLog +++ b/bacula/ChangeLog @@ -1,4 +1,49 @@ -2002-mm-dd Release 1.23 +2002-07-22 Release 1.23 + From kes22Jul02 +- Updated Bacula to handle some minor differences in MySQL 4.0.2 + (still works with older MySQLs). +- Updated MySQL documentation to correct some minor errors. +- Added kernstodo to CVS +- Fixed create_mysql_database, which I recently accidently broke. +- Disallow zero length volume names in Console program. +- Create alter_mysql_tables and alter_sqlite_tables for conversion + from 1.22 table format to 1.23 table format. + + From kes20Jul02 +- Investigation of SQLite performace problems reported by Chuck. +- Updated ChangeLog +- Updated README +- made root@localhost the default email address because many smtp + servers reject root but accept root@localhost +- Added an autochangers chapter to the manual. +- Documented most of the new features in 1.23 +- Modified the SQLite interface code to start a transaction at the + beginning of a job and commit it at the end of the job. It + also commits it after 10000 changes. Hopefully this will + improve performance. +- Set the default cache pages from 2000 to 10000 for SQLite (i.e. + about 15Megs of memory) hoping to improve performance. +- Terminate last filename referenced in FD prior to copy to + avoid race problem with multiple threads and no locking. +- Enhanced the status output to include the JobType +- Print an error message if the email program terminates in error. +- If your machine has an MTUNLOCK, do it before doing an OFFLINE to + ensure that the door is unlocked. +- Added code to stored/append.c to spool attributes. This is in + a testing stage and must be explicitly enabled. +- Added a no_attributes variable to stored/append.c that prevents + the attributes from being sent to the Director. As yet, no way + to turn it on. +- Modified SQLite code so that after 10000 updates any transaction + is committed, then restarted. This keeps it from using too much + memory. +- Set the default cache size to 10000 pages (previously 2000). +- Fixed a segmentation fault on Sun due to no default value for + the JobStatus. +- Added the same indexes to SQLite that I exist in MySQL. This + VASTLY reduces CPU usage for lots of inserts. +- Added spooling to bnet_send(). + From kes18Jul02 - The following two changes were prompted by questions/suggestions from A Morgan. diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index 25be83811b..d288dcc617 100755 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -654,7 +654,9 @@ void dispatch_message(void *vjcr, int type, int level, char *msg) make_unique_mail_filename(jcr, &name, d); d->fd = fopen(name, "w+"); if (!d->fd) { + d->fd = stdout; Emsg2(M_ERROR, 0, "fopen %s failed: ERR=%s\n", name, strerror(errno)); + d->fd = NULL; free_pool_memory(name); break; } @@ -671,7 +673,9 @@ void dispatch_message(void *vjcr, int type, int level, char *msg) if (!d->fd) { d->fd = fopen(d->where, "w+"); if (!d->fd) { + d->fd = stdout; Emsg2(M_ERROR, 0, "fopen %s failed: ERR=%s\n", d->where, strerror(errno)); + d->fd = NULL; break; } } @@ -682,7 +686,9 @@ void dispatch_message(void *vjcr, int type, int level, char *msg) if (!d->fd) { d->fd = fopen(d->where, "a"); if (!d->fd) { + d->fd = stdout; Emsg2(M_ERROR, 0, "fopen %s failed: ERR=%s\n", d->where, strerror(errno)); + d->fd = NULL; break; } } -- 2.39.5