Permalink
Browse files

Fix problems with commit 4dac5d0

The problem was that the joid was taken from the first SOS_LABEL.

We now do not set the jobid from the SOS_LABEL anymore.

Also unified the logging of some functions.
  • Loading branch information...
pstorz committed Dec 20, 2017
1 parent 1d9fae1 commit 6ee6c8d8e4208157e6aae6d36cc4000231ab3177
Showing with 2 additions and 3 deletions.
  1. +0 −1 src/stored/mac.c
  2. +1 −1 src/stored/status.c
  3. +1 −1 src/stored/vol_mgr.c
View
@@ -150,7 +150,6 @@ static bool clone_record_internally(DCR *dcr, DEV_RECORD *rec)
/*
* set job info from first SOS label
*/
jcr->JobId = label->JobId;
jcr->setJobType(label->JobType);
jcr->setJobLevel(label->JobLevel);
Dmsg1(200, "joblevel from SOS_LABEL is now %c\n", label->JobLevel);
View
@@ -457,7 +457,7 @@ static void list_volumes(STATUS_PKT *sp, const char *devicenames)
vol->is_in_use(), vol->get_jobid());
sendit(msg.c_str(), len, sp);
} else {
len = Mmsg(msg, "Volume: %s no device. volinuse= %d\n",
len = Mmsg(msg, "Read Volume: %s no device. volinuse= %d\n",
vol->vol_name, vol->is_in_use());
sendit(msg.c_str(), len, sp);
}
View
@@ -177,7 +177,7 @@ void add_read_volume(JCR *jcr, const char *VolumeName)
free_read_vol_item(nvol);
Dmsg2(dbglvl, "read_vol=%s JobId=%d already in list.\n", VolumeName, jcr->JobId);
} else {
Dmsg2(dbglvl, "add read_vol=%s JobId=%d\n", VolumeName, jcr->JobId);
Dmsg2(dbglvl, "add_read_vol=%s JobId=%d\n", VolumeName, jcr->JobId);
}
unlock_read_volumes();
}

0 comments on commit 6ee6c8d

Please sign in to comment.