Commit 225de783 authored by Eric Cano's avatar Eric Cano
Browse files

Added missing setting of drive's desired state to down when failing to schedule.

parent b9221c86
......@@ -135,6 +135,8 @@ schedule:
localParams.add("errorMessage", e.getMessageValue());
lc.log(cta::log::ERR, "Error while scheduling new mount. Putting the drive down.");
m_scheduler.reportDriveStatus(m_driveInfo, cta::common::dataStructures::MountType::NoMount, cta::common::dataStructures::DriveStatus::Down);
cta::common::dataStructures::SecurityIdentity cliId;
m_scheduler.setDesiredDriveState(cliId, m_driveConfig.unitName, false, false);
return MARK_DRIVE_AS_DOWN;
}
// No mount to be done found, that was fast...
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment