Skip to content

Commit

Permalink
label: remove dcr manipulation
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsura authored and BareosBot committed Aug 1, 2023
1 parent b0ccce3 commit 9942923
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/stored/label.cc
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ bool WriteSessionLabel(DeviceControlRecord* dcr, int label)
Dmsg1(130, "session_label record=%x\n", rec);
switch (label) {
case SOS_LABEL:
SetStartVolPosition(dcr);
// SetStartVolPosition(dcr);
break;
case EOS_LABEL:
break;
Expand Down Expand Up @@ -1106,7 +1106,7 @@ bool DeviceControlRecord::RewriteVolumeLabel(bool recycle)
dev->VolCatInfo.VolCatRecycles = 0;
dev->VolCatInfo.VolCatWrites = 1;
dev->VolCatInfo.VolCatReads = 1;
dcr->DirCreateJobmediaRecord(true);
// dcr->DirCreateJobmediaRecord(true);
}
Dmsg1(150, "dir_update_vol_info. Set Append vol=%s\n", dcr->VolumeName);
dev->VolCatInfo.VolFirstWritten = time(NULL);
Expand Down

0 comments on commit 9942923

Please sign in to comment.