Commit b432f9c6 authored by Steven Murray's avatar Steven Murray
Browse files

Renamed Cleaner::clean() to Cleaner::execute()

parent 2af7203f
......@@ -39,9 +39,9 @@ castor::tape::tapeserver::daemon::CleanerSession::CleanerSession(
}
//------------------------------------------------------------------------------
// clean
// execute
//------------------------------------------------------------------------------
int castor::tape::tapeserver::daemon::CleanerSession::clean(const std::string &vid) {
int castor::tape::tapeserver::daemon::CleanerSession::execute(const std::string &vid) {
castor::tape::SCSI::DeviceVector dv(m_sysWrapper);
castor::tape::SCSI::DeviceInfo driveInfo = dv.findBySymlink(m_driveConfig.devFilename);
......
......@@ -65,7 +65,7 @@ namespace daemon {
*
* @return 0 in case of success (drive can stay UP) or 1 in case of failure (drive needs to be put down by the caller)
*/
int clean(const std::string &vid);
int execute(const std::string &vid);
private:
/**
......@@ -93,4 +93,4 @@ namespace daemon {
} // namespace daemon
} // namespace tapeserver
} // namespace tape
} // namespace castor
\ No newline at end of file
} // namespace castor
......@@ -474,8 +474,8 @@ int castor::tape::tapeserver::daemon::ProcessForker::runCleanerSession(
m_log,
driveConfig,
sWrapper);
// clean() returns 0 if drive should be put up or 1 if it should be put down
return cleanerSession.clean(rqst.vid());
// execute() returns 0 if drive should be put up or 1 if it should be put down
return cleanerSession.execute(rqst.vid());
} catch(castor::exception::Exception &ne) {
castor::exception::Exception ex;
ex.getMessage() << "Failed to run cleaner session: " << ne.getMessage().str();
......
......@@ -558,7 +558,7 @@ void castor::tape::tapeserver::daemon::TapeDaemon::blockSignals() const {
// registerTapeDrivesWithVdqm
//------------------------------------------------------------------------------
void castor::tape::tapeserver::daemon::TapeDaemon::registerTapeDrivesWithVdqm()
{
{
const std::list<std::string> unitNames = m_driveCatalogue->getUnitNames();
for(std::list<std::string>::const_iterator itor = unitNames.begin();
......
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