]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/ua_status.c
kes Make WritePartAfterJob the default so that the last DVD part
[bacula/bacula] / bacula / src / dird / ua_status.c
index 16b82cba5b5e462ac85deb1fb56ac864465a7cf3..13c3ff38f767f36420bdaa3ca93c40a2ca60e291 100644 (file)
@@ -377,6 +377,7 @@ static void prt_runtime(UAContext *ua, sched_pkt *sp)
       if (ok) {
          mr.PoolId = jcr->jr.PoolId;
          mr.StorageId = sp->store->StorageId;
+         jcr->wstore = sp->store;
          ok = find_next_volume_for_append(jcr, &mr, 1, false/*no create*/);
       }
       if (!ok) {
@@ -400,7 +401,6 @@ static void prt_runtime(UAContext *ua, sched_pkt *sp)
       db_close_database(jcr, jcr->db);
    }
    jcr->db = ua->db;                  /* restore ua db to jcr */
-
 }
 
 /*