From 19d59047110a9894471ddfe677d5d842b90ca978 Mon Sep 17 00:00:00 2001 From: Cedric CAFFY <cedric.caffy@cern.ch> Date: Thu, 13 Feb 2020 11:11:59 +0100 Subject: [PATCH] Tape session finished message now tells if the tape has been mounted or not via the boolean wasTapeMounted --- tapeserver/castor/tape/tapeserver/daemon/TaskWatchDog.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tapeserver/castor/tape/tapeserver/daemon/TaskWatchDog.hpp b/tapeserver/castor/tape/tapeserver/daemon/TaskWatchDog.hpp index 3309d1d501..5e897e85d2 100644 --- a/tapeserver/castor/tape/tapeserver/daemon/TaskWatchDog.hpp +++ b/tapeserver/castor/tape/tapeserver/daemon/TaskWatchDog.hpp @@ -175,6 +175,13 @@ protected: /** Time beetwen fineshed tape thread and finished disk threads */ const double drainingTime = deliveryTime > totalTime?deliveryTime-totalTime: 0.0; + bool wasTapeMounted = true; + if(m_stats.mountTime == 0.0){ + //Tape was not mounted, we add a message to tell that no physical mount has been + //triggered + wasTapeMounted = false; + } + paramList.push_back(Param("wasTapeMounted",wasTapeMounted)); paramList.push_back(Param("mountTime", m_stats.mountTime)); paramList.push_back(Param("positionTime", m_stats.positionTime)); paramList.push_back(Param("waitInstructionsTime", m_stats.waitInstructionsTime)); -- GitLab