Skip to content
Snippets Groups Projects
Commit dcb69074 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 834c793f
No related branches found
No related tags found
No related merge requests found
......@@ -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...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment