]> 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, 2 Aug 2010 14:49:42 +0000 (16:49 +0200)
bacula/src/cats/sql.c

index c54454b3c0ad6a6b7f67a1ddbf7bcd48901caca9..8b910a1fba507f210c554d52d2600fd5d275c8ad 100644 (file)
@@ -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));