MEDIA_DBR mr;
int ok;
JCR *jcr = get_jcr_from_PyObject(self);
- memset(&mr, 0, sizeof(mr));
bstrncpy(mr.VolumeName, VolName, sizeof(mr.VolumeName));
ok = db_get_media_record(jcr, jcr->db, &mr);
return Py_BuildValue("i", ok);
// PyEval_ReleaseLock();
UAContext *ua = new_ua_context(jcr);
ua->batch = true;
- if (!cancel_job(ua, jcr, true)) {
+ if (!cancel_job(ua, jcr)) {
/* ***FIXME*** raise exception */
return NULL;
}