X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=bacula%2Fsrc%2Fdird%2Fnext_vol.c;h=5f58db8236d0cba4f02e8593f9c2abbbc9f7fb89;hb=2c41a8177181d96c355fb94c247453ddedd33914;hp=0f95284cb04beea8476e4dbc9381f42dab7ed4cc;hpb=59590d7772cb9bd8167ef526a0d3ef9bb10b1111;p=bacula%2Fbacula diff --git a/bacula/src/dird/next_vol.c b/bacula/src/dird/next_vol.c index 0f95284cb0..5f58db8236 100644 --- a/bacula/src/dird/next_vol.c +++ b/bacula/src/dird/next_vol.c @@ -45,15 +45,16 @@ int find_next_volume_for_append(JCR *jcr, MEDIA_DBR *mr, bool create) int retry = 0; bool ok; bool InChanger; + STORE *store = jcr->store; mr->PoolId = jcr->PoolId; - bstrncpy(mr->MediaType, jcr->store->media_type, sizeof(mr->MediaType)); + bstrncpy(mr->MediaType, store->media_type, sizeof(mr->MediaType)); Dmsg2(120, "CatReq FindMedia: Id=%d, MediaType=%s\n", mr->PoolId, mr->MediaType); /* * If we are using an Autochanger, restrict Volume * search to the Autochanger on the first pass */ - InChanger = jcr->store->autochanger; + InChanger = store->autochanger; /* * Find the Next Volume for Append */