]> 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)
committerMarco van Wieringen <mvw@planets.elm.net>
Fri, 15 Jun 2012 12:16:58 +0000 (14:16 +0200)
commit6348b514e1bd4eec60e16566a6559f838a303b1e
treee2fb665db8979eed39a0efa8aef7509cebcbb612
parentd516bc9608a0254a11173aa7e9b7f098c0c07c6d
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