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-7.0.0~2026 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3efa4f3523dab7050a2be1b389fec87db52661df;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));