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.2.1~1561 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0d6699cc1cf116b09d74bb7eaa734b1f3ff42b89;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 c54454b3c0..8b910a1fba 100644 --- a/bacula/src/cats/sql.c +++ b/bacula/src/cats/sql.c @@ -384,7 +384,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));