]> git.sur5r.net Git - bacula/bacula/commit
Fix bug #1893
authorMarco van Wieringen <mvw@planets.elm.net>
Fri, 15 Jun 2012 12:16:58 +0000 (14:16 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:49 +0000 (14:50 +0200)
commitfaf3f0b8e1786c264840b3b3d67f7deb800a694c
tree8c86bfbfdfe6288167b8673865d8f8deaffae288
parent1e74aa991964e75a46662ac0c34a7f6e04d959a6
Fix bug #1893

Only try to close an database transaction when the database
is opened. Only destroy an rwl_lock when it is initialized.
As dbcheck only calls db_init_database and then db_close_database
the database is never opened and we try to end an transaction
on a non-opened database, the rwl_destroy will also give
an error (which is ignored) as the rwl_lock is only initialized
on opening of the database.
bacula/src/cats/dbi.c
bacula/src/cats/ingres.c
bacula/src/cats/mysql.c
bacula/src/cats/postgresql.c
bacula/src/cats/sqlite.c
bacula/src/lib/rwlock.c
bacula/src/lib/rwlock.h