]> 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)
commit8072c709e84dd15a87dae9b76159ef6fc9ac2884
tree1cd98500a6c14fe69c2a1b34fb702307e152c456
parent2e07b2cfa83d49147630186a1dfbe850248b09ac
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