]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/reserve.c
Start RESTORE_OBJECT code
[bacula/bacula] / bacula / src / stored / reserve.c
index 8119f84af7fee6e2bb7672c2374970400e93937e..40e0f2f275da58eb3bfe36dcf5a662a7392b754d 100644 (file)
@@ -101,11 +101,11 @@ void term_reservations_lock()
 int reservations_lock_count = 0;
 
 /* This applies to a drive and to Volumes */
-void _lock_reservations()
+void _lock_reservations(const char *file, int line)
 {
    int errstat;
    reservations_lock_count++;
-   if ((errstat=rwl_writelock(&reservation_lock)) != 0) {
+   if ((errstat=rwl_writelock_p(&reservation_lock, file, line)) != 0) {
       berrno be;
       Emsg2(M_ABORT, 0, "rwl_writelock failure. stat=%d: ERR=%s\n",
            errstat, be.bstrerror(errstat));