Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
f048e4b2
Commit
f048e4b2
authored
Oct 17, 2016
by
Eric Cano
Browse files
Added debug printout for RecallReportPacker::ReportDriveStatus leak in CI.
parent
477640b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.cpp
View file @
f048e4b2
...
...
@@ -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
...
...
tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.hpp
View file @
f048e4b2
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment