]> git.sur5r.net Git - bacula/bacula/commitdiff
Minor cleanups
authorKern Sibbald <kern@sibbald.com>
Tue, 22 Jul 2008 14:48:21 +0000 (14:48 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 22 Jul 2008 14:48:21 +0000 (14:48 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7416 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/ChangeLog
bacula/ReleaseNotes
bacula/src/c
bacula/src/jcr.h
bacula/src/lib/bsock.h
bacula/src/lib/message.c
bacula/src/qt-console/console/console.cpp
bacula/src/qt-console/main.cpp
bacula/src/qt-console/mainwin.cpp
bacula/technotes-2.4

index 76c869ad948649840d8b0e93e19a3a8befe36b84..8264b6ff405cbcf103922e912df7f8c27ec45a9e 100644 (file)
@@ -1,6 +1,23 @@
               Technical notes on version 2.4.x
 
 General:
+Release Version 2.4.2
+22Jul08
+kes  Minor cleanups.
+kes  Fix bug #1125 which reports a SD crash at the end of a tape
+     during restore. It was a debug statement that should not be
+     in a release.
+20Jul08
+ebl  fix #1034 by setting big timeout on mysql connections
+19Jul08
+kes  Do partial integration of the Win32 bat build created by Eric.
+kes  Fix bat not to block.
+15Jul08
+kes  Ensure that SD tried to mount a volume not in an autochanger
+     at least once before asking for operator intervention.
+kes  Fix a pthreads bug in the Win32 pthreads emulation code.
+
+
 Release Version 2.4.1
 07Jul08
 kes  Clear in-use bit on vol when unused while swapping.
index 2dc413ebeb4c57a94da19f6232dd8520f63c024b..a76225d177f391673f995902a832f62940ccf20e 100644 (file)
@@ -1,5 +1,5 @@
 
-       Release Notes for Bacula 2.4.1
+       Release Notes for Bacula 2.4.2
 
   Bacula code: Total files = 500 Total lines = 188,654 (*.h *.c *.in)
 
@@ -14,6 +14,28 @@ reparse directories backed up, you must explicitly include them
 in your FileSet.
 ==============================================================
 
+Release 2.4.2
+ This is a bug fix for version 2.4.1.
+
+Bugs Fixed:
+ 1034, 1125
+
+Change Summary:
+- Fix bug #1125 which reports a SD crash at the end of a tape
+  during restore. It was a debug statement that should not be
+  in a release.
+- Fix #1034 by setting big timeout on mysql connections
+- Do partial integration of the Win32 bat build created by Eric.
+- Ensure that SD tried to mount a volume not in an autochanger
+  at least once before asking for operator intervention.
+- Fix a pthreads bug in the Win32 pthreads emulation code affects only
+  version 2.5.x and above.
+
+
+=================================================================
+
+Release 2.4.1:
+
 Bugs Fixed:
  1103, 1100, 1105, 1094, 1109, 1106, 1101, 1102, 1112               
  1117, 1116, 1097.
index 218100b7134840785897b578c0cc72d8c1f1d2a5..96589d45e3574e49aec329fec9d3380eb6d1f380 100644 (file)
@@ -1,7 +1,7 @@
 /*
    Bacula® - The Network Backup Solution
 
-   Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
+   Copyright (C) 2000-2008 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.
@@ -20,7 +20,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   Bacula® is a registered trademark of John Walker.
+   Bacula® is a registered trademark of Kern Sibbald.
    The licensor of Bacula is the Free Software Foundation Europe
    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
    Switzerland, email:ftf@fsfeurope.org.
index 76a1916e7d6c3e6f9431d1170acb4670a17cef55..f928a548c052c9d86bb048f20f00393d7bf66557 100644 (file)
@@ -1,7 +1,7 @@
 /*
    Bacula® - The Network Backup Solution
 
-   Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
+   Copyright (C) 2000-2008 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.
@@ -20,7 +20,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   Bacula® is a registered trademark of John Walker.
+   Bacula® is a registered trademark of Kern Sibbald.
    The licensor of Bacula is the Free Software Foundation Europe
    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
    Switzerland, email:ftf@fsfeurope.org.
index 08e32859de48f4eec51f10819a52bc84de6a9ae1..eba26e872c4043f7a6a8bb874ecab3a988315854 100644 (file)
@@ -107,8 +107,8 @@ public:
    int set_nonblocking();
    int set_blocking();
    void restore_blocking(int flags);
-   int wait_data(int sec, int usec);
-   int wait_data_intr(int sec, int usec);
+   int wait_data(int sec, int usec=0);
+   int wait_data_intr(int sec, int usec=0);
    bool authenticate_director(const char *name, const char *password,
                   TLS_CONTEXT *tls_ctx, char *msg, int msglen);
 
index ac0e8e00f08fcd147a288e43833ebcf70b2928c7..933e2fb5e70d5de6d3345d8c2a6c274f66004d19 100644 (file)
@@ -875,10 +875,10 @@ d_msg(const char *file, int line, int level, const char *fmt,...)
        if (trace) {
           if (!trace_fd) {
              char fn[200];
-#ifdef HAVE_WIN32
-             bsnprintf(fn, sizeof(fn), "%s/%s.trace", working_directory ? working_directory : ".", my_name);
-#else
+#if defined(HAVE_WIN32)
              bsnprintf(fn, sizeof(fn), "%s.trace", my_name);
+#else
+             bsnprintf(fn, sizeof(fn), "%s/%s.trace", working_directory ? working_directory : ".", my_name);
 #endif
              trace_fd = fopen(fn, "a+b");
           }
index 76415412e7692cc6b5c3eef31701a0e7b2ecae4c..9f69e61a6c0811e4d2a4740d6d4f48c873eff297 100644 (file)
@@ -612,27 +612,11 @@ int Console::read()
    int stat = 0;
    while (m_sock) {
       for (;;) {
-//       bool enabled;
-//       if (mainWin->m_commDebug) Pmsg0(000, "bnet_wait_data_intr\n");
          stat = m_sock->wait_data_intr(0, 50000);
          if (stat > 0) {
             break;
          } 
-//       if (mainWin->m_commDebug) Pmsg1(000, "wait status=%d\n", stat);
-#ifdef xxx
-         if (m_notifier) {
-            enabled = m_notifier->isEnabled();
-            if (enabled) {
-               m_notifier->setEnabled(false);
-            }
-         }
-#endif
          app->processEvents();
-#ifdef xxx
-         if (m_notifier && enabled) {
-            m_notifier->setEnabled(true);
-         }
-#endif
          if (m_api_set && m_messages_pending && m_notifier->isEnabled()) {
             write_dir(".messages");
             m_messages_pending = false;
index cad8b94e80cd04f1448a748584cc3d75e6ccbbf4..3daa38a8097a5ae10c144147de458dd96ddd61c8 100644 (file)
@@ -123,7 +123,9 @@ int main(int argc, char *argv[])
    }
 
    OSDependentInit();
+#ifdef HAVE_WIN32
    WSA_Init();                        /* Initialize Windows sockets */
+#endif
 
    if (configfile == NULL) {
       configfile = bstrdup(CONFIG_FILE);
index 33b4d0296bb391ea4b1e0ed0fca6e1400ae218a6..343ebd01c16f1622b8cf26aeb3aae5a52baa37ff 100644 (file)
@@ -54,8 +54,6 @@
 #include "jobgraphs/jobplot.h"
 #endif
 
-extern bool trace;
-
 /* 
  * Daemon message callback
  */
@@ -66,10 +64,6 @@ void message_callback(int /* type */, char *msg)
 
 MainWin::MainWin(QWidget *parent) : QMainWindow(parent)
 {
-#ifdef HAVE_WIN32
-   my_name_is(0, NULL, "bat");
-   set_trace(true);
-#endif
    m_isClosing = false;
    m_dtformat = "yyyy-MM-dd HH:mm:ss";
    mainWin = this;
index e58c3a6dd04c61b3bdb3a0c51010d9554cb0f23d..8ad2670463e6fb0391c385bf99e379c94aa643be 100644 (file)
@@ -1,7 +1,9 @@
               Technical notes on version 2.4
 
 General:
+Release Version 2.4.2
 22Jul08
+kes  Minor cleanups.
 kes  Fix bug #1125 which reports a SD crash at the end of a tape
      during restore. It was a debug statement that should not be
      in a release.