]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix error cannot open message file.
authorKern Sibbald <kern@sibbald.com>
Mon, 22 Jul 2002 20:28:42 +0000 (20:28 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 22 Jul 2002 20:28:42 +0000 (20:28 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@68 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/ChangeLog
bacula/src/lib/message.c

index 58e869fd75260b722ee0105c7f8aae0c5df2e12b..10b0c26e02d9dd5187f35dd48a27dce4c1ea9e00 100644 (file)
@@ -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.
index 25be83811b4ec1a77b0a2baaa2c89a1f45b58dcd..d288dcc617d5594c9af45616c7caeaab87a56f5e 100755 (executable)
@@ -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;
                   }
                }