diff --git a/tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.cpp b/tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.cpp index e76b80cc049ac05b3b3c262e50cf056cab7f02c2..64bfc5b86643d6d6dbfa1e42d98b6fc88ce77a40 100644 --- a/tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.cpp +++ b/tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.cpp @@ -49,7 +49,7 @@ RecallReportPacker::RecallReportPacker(cta::RetrieveMount *retrieveMount, cta::l m_workerThread(*this), m_errorHappened(false), m_retrieveMount(retrieveMount), m_tapeThreadComplete(false), m_diskThreadComplete(false) { - + } //------------------------------------------------------------------------------ //Destructor diff --git a/tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.hpp b/tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.hpp index f528825aa8a8e592852f545599109f3b6bdba83d..5b644643ec300e7fafd7ec2d1a4fe35a45fe49f3 100644 --- a/tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.hpp +++ b/tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.hpp @@ -31,6 +31,8 @@ #include "scheduler/RetrieveMount.hpp" #include <memory> +// TODO: remove (RecallReportPacker::ReportDriveStatus allocation debug) +#include <iostream> namespace castor { namespace tape { @@ -160,10 +162,18 @@ private: class ReportDriveStatus : public Report { cta::common::dataStructures::DriveStatus m_status; + public: - ReportDriveStatus(cta::common::dataStructures::DriveStatus status): m_status(status) {} + ReportDriveStatus(cta::common::dataStructures::DriveStatus status): m_status(status) { + // TODO: remove when not needed (debug printf for intermittent memory leak in CI) + std::cout << ">>>> Allocated a RecallReportPacker::ReportDriveStatus:" << std::hex << this << std::endl; + } void execute(RecallReportPacker& reportPacker) override; bool goingToEnd() override; + // TODO: remove when not needed (debug printf for intermittent memory leak in CI) + virtual ~ReportDriveStatus() { + std::cout << "<<<< Deleted a RecallReportPacker::ReportDriveStatus:" << std::hex << this << std::endl; + } }; class ReportEndofSession : public Report {