]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/vol_mgr.c
Fix bug #1542 File Daemon outputs usage message to stdout instead of stderr
[bacula/bacula] / bacula / src / stored / vol_mgr.c
index dff4f21454a6c23ef81391227b2ec8d2d7a9257d..5bc9ba840d8dad70f553b1aef29c4972b34daefb 100644 (file)
@@ -44,7 +44,7 @@ const int dbglvl =  150;
 static dlist *vol_list = NULL;
 static brwlock_t vol_list_lock;
 static dlist *read_vol_list = NULL;
-static pthread_mutex_t read_vol_lock = PTHREAD_MUTEX_INITIALIZER;
+static bthread_mutex_t read_vol_lock = BTHREAD_MUTEX_PRIORITY(PRIO_SD_READ_VOL_LIST);
 
 /* Forward referenced functions */
 static void free_vol_item(VOLRES *vol);
@@ -178,7 +178,6 @@ void remove_read_volume(JCR *jcr, const char *VolumeName)
    if (fvol) {
       Dmsg3(dbglvl, "remove_read_vol=%s JobId=%d found=%d\n", VolumeName, jcr->JobId, fvol!=NULL);
    }
-   debug_list_volumes("remove_read_volume");
    if (fvol) {
       read_vol_list->remove(fvol);
       free_vol_item(fvol);