Commit f048e4b2 authored by Eric Cano's avatar Eric Cano
Browse files

Added debug printout for RecallReportPacker::ReportDriveStatus leak in CI.

parent 477640b5
......@@ -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
......
......@@ -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 {
......
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