]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/filed/restore.c
- Add more jcr methods and make mutex and use_count private.
[bacula/bacula] / bacula / src / filed / restore.c
index 4aed75c9b6f41d4e278fc7b0ff0b962ad8e899eb..274b07148f3588ffeae38aa2b7998b52766f5025 100644 (file)
@@ -289,10 +289,10 @@ void do_restore(JCR *jcr)
             extract = true;
             /* FALLTHROUGH */
          case CF_CREATED:        /* File created, but there is no content */
-            P(jcr->mutex);
+            jcr->lock();  
             pm_strcpy(jcr->last_fname, attr->ofname);
-            V(jcr->mutex);
             jcr->JobFiles++;
+            jcr->unlock();
             fileAddr = 0;
             print_ls_output(jcr, attr);
 #ifdef HAVE_DARWIN_OS