Skip to content

Commit

Permalink
reserve.cc: keep volume name empty if no volume found
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri authored and BareosBot committed Aug 1, 2023
1 parent 468f4ca commit e0067e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/stored/reserve.cc
Expand Up @@ -484,6 +484,9 @@ bool FindSuitableDeviceForJob(JobControlRecord* jcr, ReserveContext& rctx)
Dmsg1(debuglevel, "OK dev found. Vol=%s from in-use vols list\n",
rctx.VolumeName);
return true;
} else {
// no existing volume found; reseting volume name.
dcr->VolumeName[0] = 0;
}

/* No reserved volume we can use, so now search for an available device.
Expand Down

0 comments on commit e0067e9

Please sign in to comment.