It would probably be better if I actually attached the patch, huh?

-- 
Frank Sweetser fs at wpi.edu  |  For every problem, there is a solution that
WPI Network Engineer          |  is simple, elegant, and wrong. - HL Mencken
    GPG fingerprint = 6174 1257 129E 0D21 D8D4  E8A3 8E39 29E3 E2E8 8CEC
--- ./bacula-1.38.7/src/cats/mysql.c    2006-04-07 08:50:17.000000000 -0400
+++ ./bacula-1.38.7/src/cats/mysql.c.orig       2006-04-07 08:49:40.000000000 
-0400
@@ -132,6 +132,7 @@
    mysql_server_init(0, NULL, NULL);
 #endif
    mysql_init(&(mdb->mysql));
+   mdb->mysql.reconnect = 1;             /* so connection does not timeout */
    Dmsg0(50, "mysql_init done\n");
    /* If connection fails, try at 5 sec intervals for 30 seconds. */
    for (int retry=0; retry < 6; retry++) {
@@ -152,7 +153,6 @@
       bmicrosleep(5,0);
    }
 
-   mdb->mysql.reconnect = 1;             /* so connection does not timeout */
    Dmsg0(50, "mysql_real_connect done\n");
    Dmsg3(50, "db_user=%s db_name=%s db_password=%s\n", mdb->db_user, 
mdb->db_name,
             mdb->db_password==NULL?"(NULL)":mdb->db_password);

Reply via email to