Skip to content
Snippets Groups Projects
Commit f97125d0 authored by Daniele Kruse's avatar Daniele Kruse
Browse files

Added few things for Vlado plus fixed small bugs

parent 42e09821
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ void cta::objectstore::DriveRegister::garbageCollect(const std::string &presumed
}
void cta::objectstore::DriveRegister::addDrive(std::string driveName) {
void cta::objectstore::DriveRegister::addDrive(std::string driveName) { //add logical library to the parameters
checkPayloadWritable();
// Check that we are not trying to duplicate a drive
try {
......
......@@ -56,6 +56,11 @@ struct LogicalLibrary {
*/
std::string name;
/**
* The state of the library online/offline
*/
bool online;
/**
* The record of the entry's creation
*/
......
......@@ -54,7 +54,7 @@ public :
*/
class RequestReport {
public:
RequestReport(): transactionId(0),
RequestReport(): transactionId(""),
connectDuration(0), sendRecvDuration(0) {}
std::string transactionId;
double connectDuration;
......
......@@ -88,7 +88,7 @@ castor::tape::tapeserver::daemon::Session::EndOfSessionAction
lc.pushOrReplace(log::Param("thread", "MainThread"));
// 2a) Get initial information from the client
client::ClientProxy::RequestReport reqReport;
std::unique_ptr<cta::TapeMount> tapeMount(m_scheduler.getNextMount(m_driveConfig.getLogicalLibrary(), m_driveConfig.getUnitName()));
std::unique_ptr<cta::TapeMount> tapeMount(m_scheduler.getNextMount(m_driveConfig.getLogicalLibrary(), m_driveConfig.getUnitName())); //getNextMount throws not implemented exception
m_volInfo.vid=tapeMount->getVid();
m_volInfo.mountType=tapeMount->getMountType();
m_volInfo.density=tapeMount->getDensity();
......@@ -173,7 +173,7 @@ castor::tape::tapeserver::daemon::Session::EndOfSessionAction
// We are now ready to put everything in motion. First step is to check
// we get any concrete job to be done from the client (via the task injector)
castor::utils::Timer timer;
if (rti.synchronousInjection()) {
if (rti.synchronousInjection()) { //adapt the recall task injector (starting from synchronousInjection)
// We got something to recall. Time to start the machinery
trst.setWaitForInstructionsTime(timer.secs());
rwd.startThread();
......
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