]> git.sur5r.net Git - bacula/bacula/commitdiff
Use file and line for rwlock and lmgr in db_lock()
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 29 Mar 2010 07:52:34 +0000 (09:52 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 29 Mar 2010 07:55:04 +0000 (09:55 +0200)
bacula/src/cats/sql.c

index 4327955ce77bad370b02e210f2259c994e50d3f3..9d4d5802242405f830760c8c273eecee4d59ef15 100644 (file)
@@ -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));