From 3efa4f3523dab7050a2be1b389fec87db52661df Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 29 Mar 2010 09:52:34 +0200 Subject: [PATCH] Use file and line for rwlock and lmgr in db_lock() --- bacula/src/cats/sql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.5