From: Eric Bollengier Date: Mon, 29 Mar 2010 07:52:34 +0000 (+0200) Subject: Use file and line for rwlock and lmgr in db_lock() X-Git-Tag: Release-5.0.2~145 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b3b077b1340ec090d8767820b824cca9f5788288;p=bacula%2Fbacula Use file and line for rwlock and lmgr in db_lock() --- diff --git a/bacula/src/cats/sql.c b/bacula/src/cats/sql.c index 4327955ce7..9d4d580224 100644 --- a/bacula/src/cats/sql.c +++ b/bacula/src/cats/sql.c @@ -382,7 +382,7 @@ char *db_strerror(B_DB *mdb) void _db_lock(const char *file, int line, B_DB *mdb) { int errstat; - if ((errstat=rwl_writelock(&mdb->lock)) != 0) { + if ((errstat=rwl_writelock_p(&mdb->lock, file, line)) != 0) { berrno be; e_msg(file, line, M_FATAL, 0, "rwl_writelock failure. stat=%d: ERR=%s\n", errstat, be.bstrerror(errstat));