From b3b077b1340ec090d8767820b824cca9f5788288 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 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)); -- 2.39.5