]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/mount.c
Add extra lock debug code but turned off
[bacula/bacula] / bacula / src / stored / mount.c
index d2bd8aedaf1e589e5f325782b107b596f68c7f5d..1c9f884bcec4c1a662b8b7a1f5afd8e08435630a 100644 (file)
@@ -109,12 +109,12 @@ mount_next_vol:
    if (dev->must_unload()) {
       ask = true;                     /* ask operator to mount tape */
    }
-   unlock_volumes();
+//   unlock_volumes();
    do_unload();
    do_swapping(true /*is_writing*/);
    do_load(true /*is_writing*/);
 
-   lock_volumes();
+//   lock_volumes();
    if (!find_a_volume()) {
       goto no_lock_bail_out;
    }
@@ -136,7 +136,7 @@ mount_next_vol:
     * and move the tape to the end of data.
     *
     */
-   unlock_volumes();
+//   unlock_volumes();
    dcr->setVolCatInfo(false);   /* out of date when Vols unlocked */
    if (autoload_device(dcr, true/*writing*/, NULL) > 0) {
       autochanger = true;
@@ -146,7 +146,7 @@ mount_next_vol:
       VolCatInfo.Slot = 0;
       ask = retry >= 2;
    }
-   lock_volumes();
+//   lock_volumes();
    Dmsg1(150, "autoload_dev returns %d\n", autochanger);
    /*
     * If we autochanged to correct Volume or (we have not just
@@ -247,7 +247,7 @@ read_volume:
     * Check that volcatinfo is good   
     */
    if (!dev->haveVolCatInfo()) {
-      Dmsg0(000, "Do not have volcatinfo\n");
+      Dmsg0(100, "Do not have volcatinfo\n");
       if (!find_a_volume()) {
          goto mount_next_vol;
       }