]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/protos.h
ebl fix debug message
[bacula/bacula] / bacula / src / stored / protos.h
index b26eb2a5c938bf644efb3e3f7dbaf88befe93be7..3f9913711c193376d27a342343a1c72cadc9e473 100644 (file)
@@ -235,7 +235,10 @@ extern int reservations_lock_count;
          do { Dmsg4(sd_dbglvl, "lock_reservations at %s:%d precnt=%d JobId=%u\n", \
               __FILE__, __LINE__, \
               reservations_lock_count, get_jobid_from_tid()); \
-                   _lock_reservations(); } while (0)
+              _lock_reservations(); \
+              Dmsg1(sd_dbglvl, "lock_reservations: got lock JobId=%u\n", \
+               get_jobid_from_tid()); \
+         } while (0)
 #define unlock_reservations() \
          do { Dmsg4(sd_dbglvl, "unlock_reservations at %s:%d precnt=%d JobId=%u\n", \
               __FILE__, __LINE__, \
@@ -261,4 +264,4 @@ void    list_spool_stats          (void sendit(const char *msg, int len, void *s
 
 /* From wait.c */
 int wait_for_sysop(DCR *dcr);
-bool wait_for_device(JCR *jcr, bool first);
+bool wait_for_device(JCR *jcr, int &retries);