]> git.sur5r.net Git - bacula/bacula/commit
Fix bug #1943 no message storage on closed database connection.
authorMarco van Wieringen <mvw@planets.elm.net>
Tue, 6 Nov 2012 14:22:26 +0000 (15:22 +0100)
committerMarco van Wieringen <mvw@planets.elm.net>
Tue, 6 Nov 2012 14:22:26 +0000 (15:22 +0100)
commit7a7806b7c33f4bdbbd4fd5196ecce9f9765d8e46
tree13531a4c2a4992f699a0c968821aa7440bc2bac4
parentd2c6005a09caf7f4edf40e929c5d24d67e077024
Fix bug #1943 no message storage on closed database connection.

Bacula director crashes if it reaches the max number connections to
MySQL server. (Or any other database) as it tries to store the
failure to connect to the database in the database over a non
connected database connection. Things like mysql_real_escape_string
which is used in that code path depend on a connected database
connection which we don't have.
bacula/src/lib/message.c